Skip to content

Commit

Permalink
Add dev prefix to dev image
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll authored and oysand committed Mar 11, 2024
1 parent d296979 commit 3b80220
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy_to_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
ComponentName: ${{ matrix.component }}
Registry: ghcr.io
ImageName: ${{ github.repository }}
Tag: ${{ needs.get-short-sha.outputs.tag }}
# Add dev. prefix for the tags used in dev environment,
# due to the commit hash can be interpreted as an integer if only numbers
# PS: Needs to match deploy.with.Tag
Tag: "dev.${{ needs.get-short-sha.outputs.tag }}"
secrets:
RegistryUsername: ${{ github.actor }}
RegistryPassword: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -54,9 +57,10 @@ jobs:
Environment: development
Registry: ghcr.io
ImageName: ${{ github.repository }}
# Add quotation marks for the tags used in dev environment,
# Add dev. prefix for the tags used in dev environment,
# due to the commit hash can be interpreted as an integer if only numbers
Tag: '${{ needs.get-short-sha.outputs.tag }}'
# PS: Needs to match build-and-push-components.with.Tag
Tag: "dev.${{ needs.get-short-sha.outputs.tag }}"
AuthorEmail: ${{ github.event.head_commit.author.email }}
AuthorName: ${{ github.event.head_commit.author.name }}
secrets:
Expand Down

0 comments on commit 3b80220

Please sign in to comment.