Skip to content

Merge pull request #125 from InjectiveLabs/master #40

Merge pull request #125 from InjectiveLabs/master

Merge pull request #125 from InjectiveLabs/master #40

Workflow file for this run

name: Release prod docker image
on:
push:
branches: [release-prod]
jobs:
docker-release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout peggo
uses: actions/checkout@master
with:
repository: InjectiveLabs/peggo
ref: release-prod
token: ${{ secrets.GH_TOKEN }}
path: ./peggo
- name: Build image
run: |
cd peggo
docker build -t public.ecr.aws/l9h3g6c6/peggo:prod .
- name: Push image
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_KEY }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET }}
aws configure set region us-east-1
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/l9h3g6c6
docker push public.ecr.aws/l9h3g6c6/peggo:prod