Skip to content

Commit

Permalink
Merge pull request #179 from Kuadrant/fix-image-build
Browse files Browse the repository at this point in the history
fix image build on main branch
  • Loading branch information
eguzki authored May 24, 2023
2 parents 517630e + fbed40d commit ec920a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
tags: ['*']

env:
IMG_TAGS: ${{ github.sha }} ${{ github.ref_name }}
IMG_TAGS: ${{ github.sha }}
IMG_REGISTRY_HOST: quay.io
IMG_REGISTRY_ORG: kuadrant
MAIN_BRANCH_NAME: main
Expand All @@ -22,9 +22,12 @@ jobs:
uses: actions/checkout@v2
- name: Add latest tag
if: ${{ github.ref_name == env.MAIN_BRANCH_NAME }}
id: add-latest-tag
run: |
echo "IMG_TAGS=latest" >> $GITHUB_ENV
echo "IMG_TAGS=${{ env.IMG_TAGS }} latest" >> $GITHUB_ENV
- name: Add branch name tag
if: ${{ github.ref_name != env.MAIN_BRANCH_NAME }}
run: |
echo "IMG_TAGS=${{ env.IMG_TAGS }} ${{ github.ref_name }}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Build Image
Expand Down

0 comments on commit ec920a6

Please sign in to comment.