Skip to content

Commit

Permalink
Merge pull request #27 from sarg3nt:update-periodic-release-to-direct…
Browse files Browse the repository at this point in the history
…ly-use-tag

Give up trying to call release and buld the release code directly into the periodic release workflow
  • Loading branch information
sarg3nt authored Oct 30, 2024
2 parents 5e72ded + d20b574 commit 830271f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/periodic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
TAG: "v1.0.1-beta.1"

permissions: read-all

Expand All @@ -31,7 +32,7 @@ jobs:
body: "A test of the auto releaseer for v 1.0.1-beta.1"
makeLatest: false
prerelease: true
tag: "v1.0.1-beta.1"
tag: ${{ env.TAG }}

- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand All @@ -45,20 +46,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and push Docker image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
context: .
build-args: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:"latest"

0 comments on commit 830271f

Please sign in to comment.