Fix ARGs #617
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: CI Arm | |
# Call CodeBuild as a runner to build Arm-CPU image | |
on: push | |
# on: | |
# push: | |
# branches: [main] | |
# paths-ignore: | |
# - 'README.md' | |
# - '.github/**' | |
# - '.vscode' | |
# - '.gitignore' | |
# pull_request: | |
# # branches: [main] | |
# types: [opened,synchronize,reopened,labeled,unlabeled] | |
env: | |
AWS_ROLE_TO_ASSUME: arn:aws:iam::770916339360:role/foo-dev-codebuild-github-action-role | |
AWS_REGION: ap-northeast-1 | |
jobs: | |
build-prod: | |
name: Build prod image | |
runs-on: ubuntu-latest | |
permissions: | |
# Interact with GitHub OIDC Token endpoint for AWS | |
id-token: write | |
contents: read | |
steps: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
# https://github.com/aws-actions/configure-aws-credentials | |
# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services | |
with: | |
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }} | |
aws-region: ${{ env.AWS_REGION }} | |
# No need to check out source | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
- name: Run CodeBuild | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
with: | |
project-name: "foo-app-github-action-arm" | |
buildspec-override: ecs/buildspec.yml | |
env-vars-for-codebuild: | | |
custom, | |
requester, | |
event-name | |
env: | |
custom: my environment variable | |
requester: ${{ github.actor }} | |
event-name: ${{ github.event_name }} |