From 5982369dd7ffa234eb07e20f7b192a6a13cf08f1 Mon Sep 17 00:00:00 2001 From: chatton Date: Thu, 30 Nov 2023 14:39:53 +0000 Subject: [PATCH 1/6] chore: adding release wasm workflow --- .github/workflows/release-wasm.yml | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/release-wasm.yml diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml new file mode 100644 index 00000000000..3435c4308a7 --- /dev/null +++ b/.github/workflows/release-wasm.yml @@ -0,0 +1,50 @@ +name: Build Wasm Docker Simapp + +on: + workflow_dispatch: + inputs: + docker_tag: + description: 'The docker tag for the wasm image' + required: true + type: string + branch: + description: 'Branch to build from' + required: true + type: choice + options: + - "08-wasm/release/v0.1.x+ibc-go-v7.3.x-wasmvm-v1.5.x" + - "08-wasm/release/v0.1.x+ibc-go-v8.0.x-wasmvm-v1.5.x" + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ibc-go-wasm-simd + DOCKER_TAG: "${{ github.event.inputs.docker_tag }}" + +jobs: + publish-docker-image-wasm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: "${{ github.event.inputs.branch }}" + fetch-depth: 0 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install dependencies + run: make python-install-deps + - name: Log in to the Container registry + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build image + run: | + # remove any `/` characters from the docker tag and replace them with a - + + version="$(scripts/get-libwasm-version.py --get-version)" + checksum="$(scripts/get-libwasm-version.py --get-checksum)" + + docker build . -t "${REGISTRY}/${ORG}/${IMAGE_NAME}:${DOCKER_TAG}" -f modules/light-clients/08-wasm/Dockerfile --build-arg LIBWASM_VERSION=${version} --build-arg LIBWASM_CHECKSUM=${checksum} + docker push "${REGISTRY}/${ORG}/${IMAGE_NAME}:${DOCKER_TAG}" From 9d5d50ada3ec1b1f298c58bda8d3e4fa737cf722 Mon Sep 17 00:00:00 2001 From: chatton Date: Thu, 30 Nov 2023 14:40:43 +0000 Subject: [PATCH 2/6] chore: make workflow appear in UI (temp) --- .github/workflows/release-wasm.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index 3435c4308a7..dd0c21603f4 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -1,6 +1,7 @@ name: Build Wasm Docker Simapp on: + push: workflow_dispatch: inputs: docker_tag: From da871e250262ba03b020d99a5a43fe57e271ff33 Mon Sep 17 00:00:00 2001 From: chatton Date: Thu, 30 Nov 2023 14:44:15 +0000 Subject: [PATCH 3/6] chore: remove push event --- .github/workflows/release-wasm.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index dd0c21603f4..3435c4308a7 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -1,7 +1,6 @@ name: Build Wasm Docker Simapp on: - push: workflow_dispatch: inputs: docker_tag: From df3e68872c1a8ad8e42d3cd313abfce0c9d6db6d Mon Sep 17 00:00:00 2001 From: chatton Date: Thu, 30 Nov 2023 14:50:45 +0000 Subject: [PATCH 4/6] chore: add temporary branch --- .github/workflows/release-wasm.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index 3435c4308a7..ea6e206b7b6 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -14,6 +14,7 @@ on: options: - "08-wasm/release/v0.1.x+ibc-go-v7.3.x-wasmvm-v1.5.x" - "08-wasm/release/v0.1.x+ibc-go-v8.0.x-wasmvm-v1.5.x" + - "damian/backport-make-targets" env: REGISTRY: ghcr.io From ece313bd343d6e83ad05933e1f4aa645f6206480 Mon Sep 17 00:00:00 2001 From: chatton Date: Thu, 30 Nov 2023 14:52:11 +0000 Subject: [PATCH 5/6] chore: add cosmos org --- .github/workflows/release-wasm.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index ea6e206b7b6..7c0101db159 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -19,6 +19,7 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ibc-go-wasm-simd + ORG: cosmos DOCKER_TAG: "${{ github.event.inputs.docker_tag }}" jobs: From 037d3194c0ce8e0bb6eff350e7792bd187451591 Mon Sep 17 00:00:00 2001 From: chatton Date: Thu, 30 Nov 2023 14:55:12 +0000 Subject: [PATCH 6/6] chore: remove test branch --- .github/workflows/release-wasm.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index 7c0101db159..afc8e34bb59 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -14,7 +14,6 @@ on: options: - "08-wasm/release/v0.1.x+ibc-go-v7.3.x-wasmvm-v1.5.x" - "08-wasm/release/v0.1.x+ibc-go-v8.0.x-wasmvm-v1.5.x" - - "damian/backport-make-targets" env: REGISTRY: ghcr.io