Skip to content

Update build.yaml

Update build.yaml #1

Workflow file for this run

name: Deploy Image
on:
push:
branches:
- master
paths:
- '**/*'
jobs:
preview:
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: write
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::984077369330:role/github-ecr-role
aws-region: us-east-2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/arm64
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
registries: "984077369330"
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/arm64
push: true
tags: 984077369330.dkr.ecr.us-east-2.amazonaws.com/ops/tech-radar:latest