Skip to content

wip

wip #2

Workflow file for this run

name: Publish
on:
push:
tags:
- v**
jobs:
publish-ecr:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::558830342743:role/PublishCleanerController
role-session-name: github-actions-from-cleaner-controller
aws-region: us-east-1
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- name: Build, tag, and push docker image to Amazon ECR Public
env:
REGISTRY: ${{ steps.login-ecr-public.outputs.registry }}
REGISTRY_ALIAS: f8y0w2c4
REPOSITORY: cleaner-controller
IMAGE_TAG: ${{ github.ref_name }}
run: |
echo $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG