Skip to content

Commit

Permalink
Change config to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-wal committed Sep 3, 2024
1 parent 6368745 commit 73c1f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Determine matrix
id: set-matrix
run: |
if [[ "${{ github.ref_name }}" == "workflows" ]]; then
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "matrix={\"include\":[{\"build-type\":\"production\",\"tag_suffix\":\"production\",\"environment\":\"production-fidl\"}, {\"build-type\":\"staging\",\"tag_suffix\":\"stg\",\"environment\":\"staging-fidl\"}]}" >> $GITHUB_OUTPUT
else
echo "matrix={\"include\":[{\"build-type\":\"staging\",\"tag_suffix\":\"staging\",\"environment\":\"staging-fidl\"}]}" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
images: public.ecr.aws/f4h6r4m9/${{ env.ECR_REPOSITORY }}
tags: |
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=branch,pattern={{branch}},suffix=-{{ matrix.tag_suffix }},enable=${{ github.ref_name == 'main' }}
type=ref,event=pr,pattern={{branch}}
- name: Create env file
Expand Down

0 comments on commit 73c1f7a

Please sign in to comment.