Skip to content

try coldsnap

try coldsnap #1

Workflow file for this run

name: Build and Publish AMI
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@cd46bde16ab981b0a7b2dce0574509104543276e # v9
- uses: DeterminateSystems/magic-nix-cache-action@eeabdb06718ac63a7021c6132129679a8e22d0c7 # v3
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
aws-region: eu-north-1
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/upload-ami
- run: nix build github:${{ github.repository }}/${{ github.ref }}#legacyAmazonImage
- run: file="$(jq '.file' < ./result/nix-support/image-info.json)"
- run: nix run nixpkgs#coldsnap -- --no-progress "$file"