ci: update devcontainer job

This commit is contained in:
Gabriel Arazas 2025-03-20 10:01:15 +08:00
parent 48949336ff
commit 874a915b7f
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -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