Skip to content

Commit

Permalink
jq raw
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Apr 21, 2024
1 parent 2909041 commit 7822825
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ jobs:
contents: read
id-token: write
environment: images
env:
FLAKE_REF: "github:${{ github.repository }}/${{ github.ref }}"
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 ${{ env.FLAKE_REF }}#legacyAmazonImage
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: |
file="$(jq '.file' < ./result/nix-support/image-info.json)"
nix run --inputs-from ${{ env.FLAKE_REF }} nixpkgs#coldsnap -- upload --no-progress "$file"
nix build .#legacyAmazonImage
file="$(jq -r '.file' < ./result/nix-support/image-info.json)"
nix run --inputs-from . nixpkgs#coldsnap -- upload --no-progress "$file"

0 comments on commit 7822825

Please sign in to comment.