v0.1.6 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker image | |
on: | |
release: | |
types: [published] | |
jobs: | |
push_to_registry: | |
name: Push Docker image to Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: login to docker hub | |
id: docker-hub | |
env: | |
username: ${{secrets.DOCKERHUB_USERNAME}} | |
password: ${{secrets.DOCKERHUB_PASSWORD}} | |
run: | | |
docker login -u $username -p $password | |
- name: build the docker image | |
id: build-docker-image | |
run: | | |
ls -la | |
docker build . -f server/docker/release/Dockerfile -t nirlipo/planimation_backend:latest | |
- name: push the docker image | |
id: push-docker-image | |
run: docker push ${{secrets.DOCKERHUB_USERNAME}}/planimation_backend:latest |