Skip to content
name: Sagemaker ECR Publish (RC)
# on manual trigger, with inputs: is_release_candidate
on:
push:
branches:
- main
- feat/sagemaker-serve
workflow_dispatch:
inputs:
is_release_candidate:
description: 'Is this a release candidate?'
required: true
default: 'true'
# Needed for OIDC / assume role
permissions:
id-token: write
contents: read
jobs:
publish_image:
name: Publish Sagemaker Image (Release Candidate)
runs-on: ubuntu-latest
env:
AWS_REGION: us-east-1
AWS_CI_ROLE__PROD: ${{ secrets.AWS_CI_ROLE__PROD }}
WORKING_DIR: "./"
IS_RC: ${{ github.event.inputs.is_release_candidate || 'true' }}
steps:
- name: Check out head
uses: actions/checkout@v3
with:
persist-credentials: false
- run: echo "Is Release Candidate: $IS_RC"

Check failure on line 39 in .github/workflows/ecr_sagemaker_publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ecr_sagemaker_publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: linux/amd64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
with:
platforms: linux/amd64
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.AWS_CI_ROLE__PROD}}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- name: Build & Push ECR Image
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ${{ env.WORKING_DIR }}
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: 064852979926.dkr.ecr.us-east-1.amazonaws.com/gr-sagemaker-validator-images-prod:restrict2topic-rc