Skip to content

Merge pull request #233 from shurinov/v2 #2268

Merge pull request #233 from shurinov/v2

Merge pull request #233 from shurinov/v2 #2268

Workflow file for this run

name: Fadroma (Docker)
on: [push]
jobs:
build-builder:
if: "!startsWith(github.ref, 'refs/tags/v')"
name: build image
runs-on: ubuntu-latest
steps:
- { uses: actions/checkout@v4, with: { submodules: recursive } }
- { id: buildx, name: Set up Docker Buildx, uses: docker/setup-buildx-action@v1 }
- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: echo "IMAGE_TAG=$(tr '/' '_' <<< ${{ github.ref_name }} | tr '@' '_')" >> $GITHUB_ENV
- uses: docker/build-push-action@v4
with:
context: .
tags: ghcr.io/hackbg/fadroma:${{ env.IMAGE_TAG }}
push: true
- run: echo ${{ steps.docker_build.outputs.digest }}
build-devnets:
if: "!startsWith(github.ref, 'refs/tags/v')"
name: devnet image
runs-on: ubuntu-latest
strategy:
matrix:
version:
- [alpine, archway-4.0.3, "archwaynetwork/archwayd:4.0.3", "738f0d04be3a60bd5014706a516bc8c6bbb29c128c4b073eb773544ef382a337"]
#- [alpine, axelar-0.34.3, "axelarnet/axelar-core:v0.34.3", "6e99f8913054bbd81b8fe248c8c6ade736bc751f822ae6f9556cc0b8fe3a998d"]
- [debian, injective-1.12.9-testnet, "public.ecr.aws/l9h3g6c6/injective-core:v1.12.9-testnet", "6af75fe970423dfa5b3df9a2023181dba95a86bc3d718eb7abab09d8ed8ff417"]
- [alpine, okp4-6.0, "okp4/okp4d:6.0.0", "50f7404014863445d7d83b794ecd91b9a5337e5709a9d1dc19215e519c1acc4a"]
- [alpine, osmosis-22.0.1, "osmolabs/osmosis:22.0.1-alpine", "71511ed82fecfc6b9d72ea5a2f07ca4373e4222e1ffaa96c891013306af9e570"]
- [ubuntu, scrt-1.12, "ghcr.io/scrtlabs/localsecret:v1.12.1", "5f0e1bfe10066deb6c86e1965c9b09b13cecc36a007ca50eb87630eebd2b294c"]
steps:
- { uses: actions/checkout@v4, with: { submodules: recursive } }
- { name: Set up Docker Buildx, id: buildx, uses: docker/setup-buildx-action@v1 }
- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: echo "IMAGE_TAG=$(tr '/' '_' <<< ${{ github.ref_name }} | tr '@' '_')" >> $GITHUB_ENV
- uses: docker/build-push-action@v4
with:
context: ./devnet/dockerfiles
file: devnet/dockerfiles/devnet-${{ matrix.version[0] }}.Dockerfile
tags: ghcr.io/hackbg/fadroma-devnet:${{ matrix.version[1] }}
push: true
build-args: BASE=${{ matrix.version[2] }}@sha256:${{ matrix.version[3] }}