Skip to content

Commit

Permalink
Update Docker GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed Nov 18, 2023
1 parent 11d866d commit e0049d1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,28 @@ jobs:
GH_RELEASER: ${{ secrets.GH_RELEASER }}
docker-hub:
needs: release
name: Deploy to docker-hub
name: Deploy to DockerHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Login to docker hub
uses: docker/login-action@v2
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ github.action_repository }}
tags: |
type=ref,event=tag
- name: Build and push to docker registry
if: success()
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.GITHUB_REPOSITORY }}:latest,${{ env.GITHUB_REPOSITORY }}:${IMAGE_TAG}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit e0049d1

Please sign in to comment.