Skip to content

feat: add latency and observation metrics #10

feat: add latency and observation metrics

feat: add latency and observation metrics #10

Workflow file for this run

name: Build and Push Beacon
on:
push:
tags:
- v*
workflow_dispatch:
inputs:
dispatch_description:
description: "Dispatch description"
required: true
type: string
permissions:
contents: read
id-token: write
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aws-actions/configure-aws-credentials@8a84b07f2009032ade05a88a28750d733cc30db1
with:
role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr
aws-region: eu-west-2
- uses: docker/login-action@v2
with:
registry: public.ecr.aws
env:
AWS_REGION: us-east-1
- run: docker context create builders
- uses: docker/setup-buildx-action@v2
with:
version: latest
endpoint: builders
- uses: haya14busa/action-cond@v1
id: image_tag
with:
cond: ${{ startsWith(github.ref, 'refs/tags/') }}
if_true: ${{ github.ref_name }}
if_false: ${{ github.sha }}
- uses: docker/build-push-action@v2
with:
push: true
tags: public.ecr.aws/pyth-network/beacon:${{ steps.image_tag.outputs.value }}