Skip to content

Commit

Permalink
build: use script action to store proper version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Mar 7, 2022
1 parent b175dc2 commit 28249ed
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yaml
Expand Up @@ -156,6 +156,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Versions
uses: actions/github-script@v6
id: set_version
with:
script: |
const tag = context.ref.substring(10)
const no_v = tag.replace('v', '')
core.setOutput('tag', tag)
core.setOutput('nov', no_v)
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand All @@ -168,5 +178,5 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref }}
ghcr.io/${{ github.repository }}:${{steps.set_version.outputs.nov}}
ghcr.io/${{ github.repository }}:latest

0 comments on commit 28249ed

Please sign in to comment.