File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,18 @@ jobs:
76
76
echo "" >> common-nix.vars.pkr.hcl
77
77
78
78
# TODO (darora): not quite sure why I'm having to uninstall and re-install these deps, but the build fails w/o this
79
+ - name : Install dependencies
80
+ run : |
81
+ sudo apt-get update
82
+ sudo apt-get remove -y qemu-efi-aarch64 cloud-image-utils qemu-system-arm qemu-utils
83
+ sudo apt-get install -y qemu-efi-aarch64 cloud-image-utils qemu-system-arm qemu-utils
79
84
80
85
- name : Build QEMU artifact
81
86
run : |
82
- mkdir output-cloudimg
83
- touch output-cloudimg/packer-cloudimg
87
+ make init
88
+ GIT_SHA=${{github.sha}}
89
+ export PACKER_LOG=1
90
+ packer build -var "git_sha=${GIT_SHA}" -var-file="common-nix.vars.pkr.hcl" qemu-arm64-nix.pkr.hcl
84
91
85
92
- name : Grab release version
86
93
id : process_release_version
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM alpine:3.21
2
2
3
3
ADD ./output-cloudimg/packer-cloudimg /disk/focal.qcow2
4
4
5
- # RUN apk add --no-cache qemu-system-aarch64 qemu-img openssh-client nftables cloud-utils-localds aavmf
5
+ RUN apk add --no-cache qemu-system-aarch64 qemu-img openssh-client nftables cloud-utils-localds aavmf
6
6
# dev stuff
7
7
# RUN apk add --no-cache iproute2
8
8
You can’t perform that action at this time.
0 commit comments