Skip to content

Build Image

Build Image #21

Workflow file for this run

name: Build Image
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
bench:
runs-on: codebuild-problem-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Configure AWS credentials from IAM Role
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_BUILD_ROLE_ARN }}
aws-region: ap-northeast-1
- name: ECR
uses: docker/login-action@v3
with:
registry: ${{ vars.AWS_ECR_REGISTRY }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./bench
push: true
platforms: linux/amd64
tags: |
${{ vars.AWS_ECR_REPOSITORY }}:latest
${{ vars.AWS_ECR_REPOSITORY }}:${{ github.sha }}