mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-16 06:19:11 +00:00
ci: update devcontainer job
This commit is contained in:
parent
48949336ff
commit
874a915b7f
4
.github/workflows/build-devcontainers.yml
vendored
4
.github/workflows/build-devcontainers.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
keep-going = true
|
||||
- name: Build
|
||||
run: |
|
||||
nix build -f ./devcontainers --impure --print-out-paths --no-link > build_paths
|
||||
nix build -f ./devcontainers --print-out-paths --no-link > build_paths
|
||||
env:
|
||||
NIXPKGS_ALLOW_UNFREE: "1"
|
||||
- name: Deploy devcontainers to GitHub registry
|
||||
@ -26,5 +26,5 @@ jobs:
|
||||
for image_archive in $(< build_paths); do
|
||||
CONTAINER_TAG=$(echo $image_archive | awk 'match($0, /docker-image-(\S+).tar.gz/, arr) {print arr[1]}')
|
||||
skopeo copy \
|
||||
"docker-archive:${image_archive}" "docker://ghcr.io/${{ github.repository }}:${CONTAINER_TAG}"
|
||||
"docker-archive:${image_archive}" "docker://ghcr.io/${{ github.repository }}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user