feat: default session id (#155) #26
Workflow file for this run
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: ECR public release | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: arn:aws:iam::726824350591:role/unleash-github-ecr-public-publish-role | |
role-session-name: proxy-actions-push-to-ecr-public | |
aws-region: us-east-1 | |
- name: Login to AWS ECR | |
id: login-ecr-public | |
uses: aws-actions/amazon-ecr-login@v1 | |
with: | |
registry-type: public | |
env: | |
AWS_DEFAULT_REGION: 'us-east-1' | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v3 | |
env: | |
REGISTRY: ${{ steps.login-ecr-public-outputs.registry }} | |
REGISTRY_ALIAS: unleashorg | |
REPOSITORY: unleash-proxy | |
with: | |
images: | | |
${{ steps.login-ecr-public.outputs.registry }}/unleashorg/unleash-proxy | |
tags: | | |
type=ref,event=tag | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
type=sha | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
with: | |
platforms: linux/arm64,linux/amd64 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
platforms: linux/arm64,linux/amd64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |