Skip to content

Commit

Permalink
Update master-push.yml
Browse files Browse the repository at this point in the history
This workflow keeps failing on release. 
This might be a fix, we use this as part of the publish methods in avm-semantics / K and there has been no issue with losing the key signing key in the middle of a push 
Example here: https://github.com/runtimeverification/k/blob/13a89f4c6a5c5ed2780ce1cffb6bd62bcfbc6be7/.github/workflows/test-pr.yml#L253C1-L264C1
  • Loading branch information
F-WRunTime authored Nov 3, 2023
1 parent 33a6b63 commit 882d2c4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/master-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,18 @@ jobs:
name: k-framework
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
skipPush: true

- name: 'Build and cache Kontrol'
uses: workflow/[email protected]
env:
GC_DONT_GC: 1
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_PUBLIC_TOKEN }}
NIX_PATH: 'nixpkgs=http://nixos.org/channels/nixos-22.05/nixexprs.tar.xz'
with:
packages: jq
script: |
KONTROL=$(nix build --extra-experimental-features 'nix-command flakes' .#kontrol --json | jq -r '.[].outputs | to_entries[].value')
DRV=$(nix-store --query --deriver ${KONTROL})
nix-store --query --requisites --include-outputs ${DRV} | cachix push k-framework
run: |
export JQ=$(nix-build '<nixpkgs>' -A jq --no-link)/bin/jq
KONTROL=$(nix build .#kontrol --json | $JQ -r '.[].outputs | to_entries[].value')
drv=$(nix-store --query --deriver ${KONTROL})
nix-store --query --requisites --include-outputs ${drv} | cachix push k-framework
dockerhub:
name: 'Build and Publish Docker Image'
Expand Down

0 comments on commit 882d2c4

Please sign in to comment.