Skip to content

Commit

Permalink
Replace invalid docker tag characters (#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton authored Sep 22, 2022
1 parent b859d7f commit 35184e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-simd-image-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ env:
REGISTRY: ghcr.io
ORG: cosmos
IMAGE_NAME: ibc-go-simd
VERSION: "${{ inputs.tag }}"
GIT_TAG: "${{ inputs.tag }}"

jobs:
build-image-at-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: "${{ env.VERSION }}"
ref: "${{ env.GIT_TAG }}"
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
Expand All @@ -31,5 +31,7 @@ jobs:
run: curl https://raw.githubusercontent.com/cosmos/ibc-go/main/Dockerfile -o Dockerfile
- name: Build image
run: |
docker build . -t "${REGISTRY}/${ORG}/${IMAGE_NAME}:${VERSION}"
docker push "${REGISTRY}/${ORG}/${IMAGE_NAME}:${VERSION}"
# remove any `/` characters from the docker tag and replace them with a -
docker_tag="$(echo $GIT_TAG | sed 's/\//-/')"
docker build . -t "${REGISTRY}/${ORG}/${IMAGE_NAME}:${docker_tag}"
docker push "${REGISTRY}/${ORG}/${IMAGE_NAME}:${docker_tag}"

0 comments on commit 35184e1

Please sign in to comment.