@@ -31,7 +31,10 @@ jobs:
|
31 | 31 | run: | |
32 | 32 | umask 077 |
33 | 33 | authfile="$RUNNER_TEMP/skopeo-auth-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}.json" |
34 | | - trap 'rm -f "$authfile"' EXIT |
| 34 | + registries_conf="$RUNNER_TEMP/registries-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}.conf" |
| 35 | + trap 'rm -f "$authfile" "$registries_conf"' EXIT |
| 36 | + : > "$registries_conf" |
| 37 | + export CONTAINERS_REGISTRIES_CONF="$registries_conf" |
35 | 38 | image="$(nix build .#dockerImage --print-out-paths --no-link)" |
36 | 39 | printf '%s' "$GHCR_TOKEN" | nix develop -c skopeo login \ |
37 | 40 | --authfile "$authfile" --username "$GITHUB_ACTOR" --password-stdin ghcr.io |
|