Skip to content

Commit

Permalink
Merge pull request #29 from sarg3nt:autogenerate-tag
Browse files Browse the repository at this point in the history
Attempt to auto-generate tag from git
  • Loading branch information
sarg3nt authored Oct 30, 2024
2 parents 10eb3ec + 82d4af1 commit 4915e27
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/periodic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
TAG: "v1.0.1-beta.1"

TAG: ""
permissions: read-all

jobs:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 4915e27

Please sign in to comment.