From 520aba243bc264b77654a30e123989a53633580b Mon Sep 17 00:00:00 2001 From: Aneesh Puttur Date: Sun, 9 Feb 2025 09:11:05 -0500 Subject: [PATCH] Update build-bundle-image.yaml --- .github/workflows/build-bundle-image.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-bundle-image.yaml b/.github/workflows/build-bundle-image.yaml index 68448bb44..1e4f1fa29 100644 --- a/.github/workflows/build-bundle-image.yaml +++ b/.github/workflows/build-bundle-image.yaml @@ -12,10 +12,6 @@ jobs: defaults: run: working-directory: '.' - env: - IMAGE_TAG_BASE : ghcr.io/${{ github.repository }} - BUNDLE_IMG: ghcr.io/${{ github.repository }}:latest-bundle:v1.0.0 - VERSION: latest steps: - name: 'Checkout GitHub Action' uses: actions/checkout@main @@ -28,6 +24,11 @@ jobs: password: ${{secrets.GITHUB_TOKEN}} - name: 'Build Bundle Image' + env: + VERSION: $(git describe --tags --abbrev=0 || echo "0.1.0") + IMAGE_TAG_BASE: ghcr.io/${{ github.repository }}:$VERSION + BUNDLE_IMG: ghcr.io/${{ github.repository }}:$VERSION-bundle:v$VERSION + BUNDLE_GEN_FLAGS: -q --overwrite --version $VERSION --extra-service-accounts "linuxptp-daemon" run: | make bundle make bundle-build