From b1c18781f3ba77789eccafa21d142d88eee7cae3 Mon Sep 17 00:00:00 2001 From: Yaosheng Zhang Date: Fri, 14 Jul 2023 15:43:02 -0700 Subject: [PATCH] container --- .github/workflows/release.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 622319ee3..b0fc98e3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,30 +16,36 @@ jobs: - uses: actions/checkout@v3 - uses: taiki-e/create-gh-release-action@v1 with: - prefix: mountpoint-s3(-[a-z]+)? + prefix: mountpoint-s3 draft: true # TODO: set it true after we have changlog template reviewed. changelog: false # TODO: set it false after we have changlog template reviewed. allow-missing-changelog: true - branch: main + # branch: main title: "Mountpoint for Amazon S3 v$version" token: ${{ secrets.GITHUB_TOKEN }} upload-assets: name: Build and release on target ${{ matrix.runner.target}} runs-on: ${{ matrix.runner.tags }} + container: public.ecr.aws/amazonlinux/amazonlinux:2 strategy: fail-fast: false matrix: runner: - - tags: [ubuntu-20.04] # GitHub-hosted - target: x86_64-unknown-linux-gnu + # specified `ami_filter` with certain amzn2 image so every time terraform provision ec2 instance will have same OS. + - tags: ubuntu-latest + target: ubuntu-latest - tags: [self-hosted, linux, arm64] - target: aarch64-unknown-linux-gnu + target: amzn2-kernel-5.10-arm64 steps: + - name: Update git + run: | + yum update + yum install git - name: Checkout source code uses: actions/checkout@v3 with: @@ -60,5 +66,3 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} checksum: sha512 asset: LICENSE - -