From a481b50723bcb3ec9930b9be87ea7c3967486dfe Mon Sep 17 00:00:00 2001 From: Nir Date: Tue, 27 Aug 2024 11:22:20 +1000 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 10e4154..fd12197 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -3,7 +3,9 @@ name: Publish Docker image on: release: types: [published] - + push: + branches: + - 'develop' jobs: push_to_registry: name: Push Docker image to Docker Hub @@ -12,13 +14,11 @@ jobs: - 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: 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