Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nirlipo authored Aug 27, 2024
1 parent 8a99488 commit a481b50
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a481b50

Please sign in to comment.