Skip to content

Commit

Permalink
ci(docker): deploy latest docker tag when creating a release (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Feb 7, 2024
1 parent f4ceb12 commit 9393103
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,22 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push Docker image 🐳
- name: Build and push Docker image on tag name 🐳
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: antoinezanardi/werewolves-assistant-api:${{ github.event.release.tag_name }}

- name: Build and push Docker image on latest 🐳
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: antoinezanardi/werewolves-assistant-api:latest

deploy:
name: Deploy to production 🚀
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9393103

Please sign in to comment.