Skip to content

Commit

Permalink
Merge pull request ohcnetwork#2574 from coronasafe/devops/update-ci
Browse files Browse the repository at this point in the history
update image name with context
  • Loading branch information
mathew-alex authored May 29, 2022
2 parents 12705b5 + b193be3 commit 5f13df6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
${{ secrets.DOCKER_HUB_USERNAME }}/$IMAGE_NAME
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest-${{ github.run_number }}-{{date 'YYYYMMDD'}}-{{sha}}
type=semver,pattern={{version}}
Expand Down Expand Up @@ -129,8 +129,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
${{ secrets.DOCKER_HUB_USERNAME }}/$IMAGE_NAME
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=production-latest,enable=${{ github.ref == 'refs/heads/production' }}
type=raw,value=production-latest-${{ github.run_number }}-{{date 'YYYYMMDD'}}-{{sha}}
Expand Down

0 comments on commit 5f13df6

Please sign in to comment.