Skip to content

Commit

Permalink
Connect the ref from push to the publish
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Sep 24, 2024
1 parent 7032f3c commit c87491a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ concurrency:
jobs:
BuildPublish:
runs-on: ubuntu-latest
outputs:
flakeref: ${{ steps.flakehubpush.outputs.flakeref }}
permissions:
id-token: "write"
contents: "read"
Expand All @@ -29,6 +31,7 @@ jobs:
use-gha-cache: false
- run: nix build .#nixosConfigurations.ethercalc-demo.config.system.build.toplevel
- uses: "DeterminateSystems/flakehub-push@main"
id: flakehubpush
with:
name: "DeterminateSystems/demo"
rolling: true
Expand All @@ -54,7 +57,7 @@ jobs:
--region us-east-2 \
--targets Key=tag:Name,Values=FlakeHubDemo \
--document-name "FlakeHub-ApplyNixOS" \
--parameters flakeref="DeterminateSystems/demo/0#nixosConfigurations.ethercalc-demo"
--parameters flakeref="${{ needs.BuildPublish.outputs.flakeref }}#nixosConfigurations.ethercalc-demo"
- name: Breakpoint if tests failed
if: failure()
uses: namespacelabs/breakpoint-action@v0
Expand Down

0 comments on commit c87491a

Please sign in to comment.