Skip to content

Update docker-publish.yml #10

Update docker-publish.yml

Update docker-publish.yml #10

name: Publish Docker image
on:
release:
types: [published]
push:
branches:
- 'develop'
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: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build the docker image
id: build-docker-image
run: |
ls -la
cd server
docker build . -f 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