Add synaptome-sim service subtype (#8) #7
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: 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 |