From 82d4af1b899a12c5f942131e08b0d69ce93d3516 Mon Sep 17 00:00:00 2001 From: Dave Sargent Date: Wed, 30 Oct 2024 12:27:27 -0700 Subject: [PATCH] Attempt to auto-generate tag from git --- .github/workflows/periodic-release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/periodic-release.yml b/.github/workflows/periodic-release.yml index c9ba854..b621fa3 100644 --- a/.github/workflows/periodic-release.yml +++ b/.github/workflows/periodic-release.yml @@ -8,8 +8,7 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} - TAG: "v1.0.1-beta.1" - + TAG: "" permissions: read-all jobs: @@ -25,6 +24,10 @@ jobs: fetch-depth: 0 fetch-tags: true + - name: Get the latest tag version + id: get_version + run: echo "TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV + - name: 'Create Release' id: create_release uses: ncipollo/release-action@v1 @@ -50,5 +53,5 @@ jobs: uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 with: build-args: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - push: true + push: false tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \ No newline at end of file