Skip to content

Add health check api (#24) #12

Add health check api (#24)

Add health check api (#24) #12

Workflow file for this run

name: Build and Push Example Publisher Image
on:
push:
tags:
- v*
workflow_dispatch:
inputs:
dispatch_description:
description: "Dispatch description"
required: true
type: string
jobs:
example-publisher-push-image:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
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/example-publisher:${{ steps.image_tag.outputs.value }}