Skip to content

Commit

Permalink
Include CI release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkinsspatial committed Aug 28, 2020
1 parent 7015dff commit 9207793
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_push_prod_ecr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build_push_to_prod_ecr

on:
release:
branches: [ collection2 ]
types: [ published ]

jobs:
build_push_to_prod_ecr:
runs-on: ubuntu-latest

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Build image
run: docker build . --tag hls-base-c2

- name: Push to prod ECR
id: push-prod-ecr
uses: jwalton/gh-ecr-push@v1
with:
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region: us-west-2
local-image: hls-base-c2
image: hls-base-c2:${GITHUB_REF##*/}

0 comments on commit 9207793

Please sign in to comment.