Skip to content

Commit

Permalink
feat(deploy): Switch to GitHub Container Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGombeaud committed Sep 16, 2023
1 parent 4298555 commit 37ebf91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: echo ${{ secrets.ENV_LOCAL }} | base64 -d > .env.local
- run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u loicag --password-stdin
- run: docker build . -t loicag/compteurs-velo:latest
- run: docker build . -t loicag/compteurs-velo:$(date +%F)
- run: docker push loicag/compteurs-velo:latest
- run: docker push loicag/compteurs-velo:$(date +%F)
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login -u $ --password-stdin ghcr.io
- run: docker build . -t compteurs-velo:latest
- run: docker build . -t compteurs-velo:$(date +%F)
- run: docker push compteurs-velo:latest
- run: docker push compteurs-velo:$(date +%F)
deploy:
needs: build
name: Deploy the new image
Expand Down

0 comments on commit 37ebf91

Please sign in to comment.