3131 determine-runner :
3232 env :
3333 LXD_ARCH : " ${{ inputs.arch || 'x86' }}"
34- runs-on : ubuntu-20.04
34+ runs-on : [ ubuntu-latest, x64]
3535 outputs :
3636 runner_label : ${{ steps.script.outputs.runner_label }}
3737 steps :
8686 if-no-files-found : error
8787
8888 build-previous :
89- runs-on : ubuntu-20.04
89+ runs-on : [ ubuntu-latest, x64]
9090 if : ${{ inputs.arch == 'x86' || inputs.arch == '' }}
9191 outputs :
9292 artifact_name : " ${{ env.ARTIFACT_NAME }}"
9595 env :
9696 VERSION : " ${{ inputs.git_ref || github.head_ref || github.ref_name }}"
9797 ARTIFACT_NAME : " ${{ github.run_id }}-lxd-${{ inputs.arch || 'x86' }}-image-previous"
98- LXD_EXTRA_PROFILE : network
98+ # LXD_EXTRA_PROFILE: network
9999 LXD_ARCH : " ${{ inputs.arch || 'x86' }}"
100100 steps :
101101 - name : Checkout code
@@ -135,20 +135,23 @@ jobs:
135135 lxd_version : latest/stable
136136 - name : Fix LXD
137137 run : |
138- lxc profile create network
139- cat <<EOF | lxc profile edit network
140- devices:
141- eth0:
142- name: eth0
143- parent: lxdbr0
144- nictype: bridged
145- type: nic
146- EOF
147138
148- - name : Set up QEMU
149- uses : docker/setup-qemu-action@v2
150- - name : Enable qemu SUID
151- run : docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
139+ sudo iptables -I DOCKER-USER -i lxdbr0 -j ACCEPT
140+ sudo iptables -I DOCKER-USER -o lxdbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
141+ # lxc profile list -f csv | grep 'network' || lxc profile create network
142+ # cat <<EOF | lxc profile edit network
143+ # devices:
144+ # eth0:
145+ # name: eth0
146+ # parent: lxdbr0
147+ # nictype: bridged
148+ # type: nic
149+ # EOF
150+
151+ # - name: Set up QEMU
152+ # uses: docker/setup-qemu-action@v2
153+ # - name: Enable qemu SUID
154+ # run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
152155 - name : Download qemu binaries
153156 run : |
154157 wget -nv https://github.com/multiarch/qemu-user-static/releases/latest/download/qemu-aarch64-static -O qemu-aarch64-static
@@ -175,7 +178,7 @@ jobs:
175178 test-update :
176179 needs :
177180 - build-previous
178- runs-on : ubuntu-20.04
181+ runs-on : [ ubuntu-latest, x64]
179182 outputs :
180183 artifact_name : " ${{ env.ARTIFACT_NAME }}"
181184 artifact_file : " ${{ steps.pack-lxd.outputs.artifact_file }}"
@@ -387,7 +390,7 @@ jobs:
387390 convert-to-lxc-image :
388391 needs :
389392 - build-current
390- runs-on : ubuntu-20.04
393+ runs-on : [ ubuntu-latest, x64]
391394 outputs :
392395 artifact_name : " ${{ steps.lxd-to-lxc.outputs.artifact_name }}"
393396 artifact_file : " ${{ steps.lxd-to-lxc.outputs.artifact_file }}"
0 commit comments