test: create e2e smoke test flow + use cluster for SP1 proofs #232
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'relayer-v[0-9]+.[0-9]+.[0-9]+' | |
workflow_dispatch: # this will kick off a dev deployment | |
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-22.04-4 | |
permissions: | |
id-token: write | |
contents: read | |
packages: write | |
env: | |
registry_url: ghcr.io/cosmos/eureka-relayer | |
steps: | |
- uses: actions/checkout@v4 | |
if: github.event_name != 'pull_request' | |
- name: Check out the PR commit head | |
uses: actions/checkout@v4 | |
if: github.event_name == 'pull_request' | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- 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: | | |
type=sha,priority=900,prefix= | |
type=semver,priority=1000,pattern={{version}} | |
type=ref,event=branch | |
type=ref,event=pr | |
- 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 |