Merge pull request #125 from InjectiveLabs/master #40
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
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 |