Skip to content

chore(solana): merge with main #2023

chore(solana): merge with main

chore(solana): merge with main #2023

Workflow file for this run

name: docker
on:
workflow_dispatch:
push:
branches:
- main
tags:
- relayer-v[0-9]+.[0-9]+.[0-9]+
pull_request:
paths:
- '**.rs'
- '**.toml'
- '**.lock'
- '**.proto'
- 'abi/**'
# Cancel the workflow if a new commit is pushed to the branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-relayer:
runs-on: depot-ubuntu-24.04-4
permissions:
id-token: write
contents: read
packages: write
env:
registry_url: ghcr.io/cosmos/eureka-relayer
steps:
- uses: actions/checkout@v5
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
env:
DOCKER_METADATA_PR_HEAD_SHA: true
with:
# list of Docker images to use as base name for tags
images: |
${{ env.registry_url }}
tags: |
# Tag triggered events
type=match,event=tag,pattern=^relayer-(v[0-9]+\.[0-9]+\.[0-9]+)$,group=1,priority=1000
# Latest, but only on main
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch' }},priority=900
# For PR tags
type=ref,event=pr,priority=800
# For sha tags
type=sha,priority=700,prefix=
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./programs/relayer/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true