Skip to content

Commit

Permalink
Ensure we never use the Dockerfile on main when working with other br…
Browse files Browse the repository at this point in the history
…anches (#3071)
  • Loading branch information
chatton authored Jan 31, 2023
1 parent 360f271 commit 05c2148
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/e2e-compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
- release/v6.1.x
- release/v7.0.x
- main
ibc-go-version:
description: 'The version of ibc-go that is going to be released'
required: true
type: string

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -62,20 +66,17 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch Makefile dependencies
if: env.RELEASE_BRANCH == matrix.release-branch
run: |
mkdir -p contrib/devtools
curl https://raw.githubusercontent.com/cosmos/ibc-go/main/contrib/devtools/Makefile -o contrib/devtools/Makefile
- name: Fetch latest Dockerfile
if: env.RELEASE_BRANCH == matrix.release-branch
run: curl https://raw.githubusercontent.com/cosmos/ibc-go/main/Dockerfile -o Dockerfile
- name: Build image
if: env.RELEASE_BRANCH == matrix.release-branch
run: |
docker_tag="$(echo ${{ matrix.release-branch }} | sed 's/\//-/')"
docker build . -t "${REGISTRY}/${ORG}/${IMAGE_NAME}:$docker_tag"
docker build . -t "${REGISTRY}/${ORG}/${IMAGE_NAME}:$docker_tag" --build-arg IBC_GO_VERSION=${{ inputs.ibc-go-version }}
docker push "${REGISTRY}/${ORG}/${IMAGE_NAME}:$docker_tag"
- name: Display image details
if: env.RELEASE_BRANCH == matrix.release-branch
run: |
docker_tag="$(echo ${{ matrix.release-branch }} | sed 's/\//-/')"
docker inspect "${REGISTRY}/${ORG}/${IMAGE_NAME}:$docker_tag"
transfer-chain-a:
needs:
Expand Down

0 comments on commit 05c2148

Please sign in to comment.