Skip to content

fix dockerfiles everywhere, add axelar to github workflows #2

fix dockerfiles everywhere, add axelar to github workflows

fix dockerfiles everywhere, add axelar to github workflows #2

Workflow file for this run

name: Build and Push Axelar Docker Image
on:
push:
tags:
- "axelar-v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-axelar:
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/axelar-}" >> $GITHUB_ENV
- name: Build and push Axelar Docker image
run: |
./heighliner build -c axelar --alpine-version 3.18 --git-ref ${{ env.VERSION }}