diff --git a/.github/workflows/symbiotic.yml b/.github/workflows/symbiotic.yml new file mode 100644 index 0000000..729d454 --- /dev/null +++ b/.github/workflows/symbiotic.yml @@ -0,0 +1,52 @@ +name: Symbiotic + +on: + push: + tags: + - "symbiotic-v[0-9]+.[0-9]+.[0-9]+" + workflow_dispatch: + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + INFRA_TOOLKIT: v0.1.6 + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v3 + with: + go-version: '1.21' + - uses: docker/login-action@v1 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Heighliner binary + run: | + go build -o heighliner + + - name: Extract version from tag + id: extract_version + run: echo "VERSION=${GITHUB_REF#refs/tags/symbiotic-}" >> $GITHUB_ENV + + - name: Manually pull the base Docker image + run: | + echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin + docker pull ghcr.io/p2p-org/cosmos-heighliner:infra-toolkit-${{ env.INFRA_TOOLKIT }} + + - name: Build and push docker image + run: | + ./heighliner build -c symbiotic --git-ref main + + - name: Tag and push Docker image + run: | + docker tag symbiotic:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:symbiotic-${{ env.VERSION }} + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:symbiotic-${{ env.VERSION }} diff --git a/chains.yaml b/chains.yaml index a951a13..1504f98 100644 --- a/chains.yaml +++ b/chains.yaml @@ -1227,6 +1227,15 @@ binaries: - build/strided +# Symbiotic +- name: symbiotic + github-organization: symbioticfi + github-repo: cosmos-sdk + dockerfile: cosmos + build-target: make build + binaries: + - build/symd + # Tendermint - name: tendermint github-organization: tendermint