ICS Linux Build Release #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ICS Consumer Linux Build Release | |
on: | |
workflow_dispatch: | |
jobs: | |
collect_remote_release: | |
name: Read latest interchain-security release | |
runs-on: ubuntu-latest | |
outputs: | |
release: ${{ steps.query_release.outputs.release }} | |
steps: | |
- name: Query latest release of the interchain-security repo | |
id: query_release | |
run: | | |
releases=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/cosmos/interchain-security/releases | jq -r '.[].tag_name') | |
echo "releases=$releases" >> "$GITHUB_OUTPUT" | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [collect_remote_release] | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
release: ${{fromJson(needs.collect_remote_release.outputs.release)}} | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Build and release | |
uses: ./.github/actions/build-ics-binary | |
with: | |
release: ${{ matrix.release }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
build-docker: | |
name: Build Docker image | |
runs-on: ubuntu-latest | |
needs: [collect_remote_release] | |
permissions: write-all | |
strategy: | |
matrix: | |
release: ${{fromJson(needs.collect_remote_release.outputs.release)}} | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: strangelove-ventures/[email protected] | |
with: | |
chain: ics | |
tag: ${{ matrix.release }} | |
git-ref: ${{ matrix.release }} | |
github-organization: cosmos | |
github-repo: interchain-security | |
additional-args: "--go-version=1.21.10" |