Skip to content

Commit

Permalink
fix release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ain-soph committed Sep 9, 2021
1 parent 03091be commit ba1e448
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: version
id: get-version
uses: actions/github-script@v4
with:
script: |
const version = context.payload.release.tag_name.substring(1)
core.exportVariable('VERSION', version)
script: return context.payload.release.tag_name.substring(1)
result-encoding: string
- name: Checkout
uses: actions/[email protected]
- name: Set up Docker Buildx
Expand All @@ -59,9 +59,9 @@ jobs:
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ env.version }}-${{ github.job }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ steps.get-version.outputs.result }}-${{ github.job }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ github.job }}
ghcr.io/${{ github.repository }}:${{ env.version }}-${{ github.job }}
ghcr.io/${{ github.repository }}:${{ steps.get-version.outputs.result }}-${{ github.job }}
ghcr.io/${{ github.repository }}:${{ github.job }}
cache-from: type=gha
cache-to: type=gha
Expand All @@ -71,11 +71,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: version
id: get-version
uses: actions/github-script@v4
with:
script: |
const version = context.payload.release.tag_name.substring(1)
core.exportVariable('VERSION', version)
script: return context.payload.release.tag_name.substring(1)
result-encoding: string
- name: Checkout
uses: actions/[email protected]
- name: Set up Docker Buildx
Expand All @@ -100,12 +100,12 @@ jobs:
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ env.version }}-${{ github.job }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ env.version }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ steps.get-version.outputs.result }}-${{ github.job }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ steps.get-version.outputs.result }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ github.job }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPOSITORY }}:latest
ghcr.io/${{ github.repository }}:${{ env.version }}-${{ github.job }}
ghcr.io/${{ github.repository }}:${{ env.version }}
ghcr.io/${{ github.repository }}:${{ steps.get-version.outputs.result }}-${{ github.job }}
ghcr.io/${{ github.repository }}:${{ steps.get-version.outputs.result }}
ghcr.io/${{ github.repository }}:${{ github.job }}
ghcr.io/${{ github.repository }}:latest
cache-from: type=gha
Expand Down

0 comments on commit ba1e448

Please sign in to comment.