Skip to content

Extend service subtypes with single cell build operations (#10) #8

Extend service subtypes with single cell build operations (#10)

Extend service subtypes with single cell build operations (#10) #8

name: Publish main to AWS public ECR latest
# Doesn't actually push to the ECR at the moment: just an example
on:
push:
branches:
- main
jobs:
publish-to-aws-ecr:
runs-on: ubuntu-latest
env:
ENVIRONMENT: prod
IMAGE_NAME: ${{ vars.PUBLICECR_URI }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.PUBLICECR_UPLOAD_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.PUBLICECR_UPLOAD_SECRET_ACCESS_KEY }}
aws-region: ${{ vars.PUBLICECR_REGION }}
- name: Authenticate with AWS Public ECR
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- name: Build
run: |
# docker build -t ${{ vars.PUBLICECR_URI }}:latest .
make build
- name: Publish To AWS ECR
run: |
# docker push ${{ vars.PUBLICECR_URI }}:latest