Skip to content

Commit

Permalink
string
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandotsmith committed Nov 13, 2023
1 parent d841368 commit 62effa6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set Tag
uses: actions/github-script@v4
id: set_tag
with:
script: |
const tag = context.ref.replace('refs/tags/v', '')
core.setOutput('tag', tag)
-
name: Build and push
uses: docker/build-push-action@v4
Expand All @@ -31,9 +39,9 @@ jobs:
context: .
file: ./cmd/shovel/Dockerfile
push: true
tags: indexsupply/shovel:${{ replace(github.ref_name, 'v', '') }}
tags: indexsupply/shovel:${{ steps.set_tag.outputs.tag }}
bins:
name: s3 binaries
name: binaries
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -56,7 +64,7 @@ jobs:
- uses: ./.github/actions/release
id: go-run-release
with:
cmd: ${{ matrix.cmd }} -tag ${{ replace(github.ref_name, 'v', '') }}
cmd: ${{ matrix.cmd }} -tag ${{ github.ref_name }}
dist: ${{ secrets.AWS_DISTRIBUTION_ID }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit 62effa6

Please sign in to comment.