Remove unsupported a rg #35
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
permissions: | |
id-token: write | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Legacy Amazon Image | |
runs-on: ${{ matrix.system[0] }} | |
strategy: | |
matrix: | |
system: | |
- [ubuntu-latest, x86_64-linux] | |
# TODO Graviton ARM | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v7 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::686862074153:role/deploy | |
aws-region: eu-central-1 | |
- name: Build AMI | |
run: nix build .#legacyAmazonImage --system ${{ matrix.system[1] }} | |
- name: Upload AMIs | |
run: | | |
nix develop --command python3 ./upload_ami/cli.py --image-info ./result/nix-support/image-info.json --s3-bucket images20231124161256194400000001 |