Skip to content

Commit

Permalink
Test tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-wal committed Sep 2, 2024
1 parent d7e9441 commit ceebb70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Determine matrix
id: set-matrix
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]] || [[ "${{ github.ref_name }}" != "workflow" ]]; then
echo "matrix={\"include\":[{\"build-type\":\"staging\",\"tag_suffix\":\"stg\",\"environment\":\"staging-fidl\"}]}" >> $GITHUB_OUTPUT
else
if [[ "${{ github.ref_name }}" == "workflow" ]]; then
echo "matrix={\"include\":[{\"build-type\":\"production\",\"tag_suffix\":\"prod\",\"environment\":\"production-fidl\"}, {\"build-type\":\"staging\",\"tag_suffix\":\"stg\",\"environment\":\"staging-fidl\"}]}" >> $GITHUB_OUTPUT
else
echo "matrix={\"include\":[{\"build-type\":\"staging\",\"tag_suffix\":\"stg\",\"environment\":\"staging-fidl\"}]}" >> $GITHUB_OUTPUT
fi
ReuseableMatrixJobForDeployment:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ jobs:
latest=false
images: public.ecr.aws/f4h6r4m9/${{ env.ECR_REPOSITORY }}
tags: |
type=semver,pattern={{branch}}-{{version}},value=v${{ inputs.version }},enable=${{inputs.version != ''}}
type=ref,event=branch,pattern={{branch}},enable=${{ github.ref_name == 'workflow' }}
type=semver,pattern={{branch}}-{{version}},value=v${{ inputs.version }},suffix={{ matrix.tag_suffix }},enable=${{inputs.version != ''}}
type=ref,event=branch,pattern={{branch}},suffix={{ matrix.tag_suffix }},enable=${{ github.ref_name == 'workflow' }}
type=ref,event=pr,pattern={{branch}}
- name: Create env file
Expand Down

0 comments on commit ceebb70

Please sign in to comment.