Skip to content

Commit

Permalink
ci: github action to push token-dispenser-datadog image (#266)
Browse files Browse the repository at this point in the history
* ci: github action to push token-dispenser-datadog image

* ci: fix push conditoin
  • Loading branch information
swimricky authored Nov 16, 2023
1 parent 29059cd commit 6e21801
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/push-token-dispenser-datadog-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Push Token Dispenser Datadog image
on:
push:
branches:
- main
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: haya14busa/action-cond@v1
id: image_tag
with:
cond: ${{ startsWith(github.ref, 'refs/tags/') }}
if_true: ${{ github.ref_name }}
if_false: ${{ github.sha }}
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr
aws-region: eu-west-2
- uses: aws-actions/amazon-ecr-login@v1
id: ecr_login
- run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
env:
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}
ECR_REPOSITORY: token-dispenser-datadog
IMAGE_TAG: ${{ steps.image_tag.outputs.value }}

1 comment on commit 6e21801

@vercel
Copy link

@vercel vercel bot commented on 6e21801 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

grant-program-devnet – ./frontend

grant-program-devnet.vercel.app
grant-program-devnet-git-main-pyth-web.vercel.app
grant-program-devnet-pyth-web.vercel.app

Please sign in to comment.