Skip to content

add Symbiotic testnet, symd #10

add Symbiotic testnet, symd

add Symbiotic testnet, symd #10

Workflow file for this run

name: Build and Push agoric Docker Image
on:
push:
tags:
- "agoric-upgrade-[0-9]+*"
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
INFRA_TOOLKIT: v0.1.6
jobs:
build-and-push-agoric:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Log in to the Container registry
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/}" >> $GITHUB_ENV
- name: Checkout agorik-sdk repository
uses: actions/checkout@v4
with:
repository: agoric/agoric-sdk
ref: ${{ env.VERSION }}
fetch-tags: true
path: agoric-sdk
- name: Extract SDK version
run: |
cd agoric-sdk
echo "SDK_VERSION=$(git tag --points-at HEAD | grep sdk | awk -F@ {'print $3'})" >> $GITHUB_ENV
cd ..
- 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 agoric Docker image
run: |
./heighliner build -c agoric-imported --git-ref ${{ env.SDK_VERSION }}
- name: Tag and push Docker image
run: |
docker tag agoric-imported:${{ env.SDK_VERSION }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}