-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: github action to push token-dispenser-datadog image (#266)
* ci: github action to push token-dispenser-datadog image * ci: fix push conditoin
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |
6e21801
There was a problem hiding this comment.
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