Skip to content

Commit

Permalink
Update docker command to use entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
GlacierWalrus committed Jun 24, 2024
1 parent b5675db commit c1ef5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_tagged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
shell: bash
run: |
set -eou pipefail
drand_version=$(docker run -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} -v | awk '{ print "v" $2 }')
drand_version=$(docker run --entrypoint /bin/sh -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} -c "/usr/local/bin/drand -v | awk '{ print \"v\" $2 }')
# see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
tag_version=$(git describe --tags | grep -P \
'^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)'\
Expand Down

0 comments on commit c1ef5e2

Please sign in to comment.