Skip to content

Commit c791d3a

Browse files
committed
testing
1 parent 9a82426 commit c791d3a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-openstack-capi-image.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ jobs:
5757
-e "s/\\\$IMAGE_TAG/${tag}/" \
5858
<"template.json" >"kubernetes.json"
5959
60-
# - name: add user
61-
# run: |
62-
# mkdir -p ${{ github.workspace }}/output
63-
# sudo useradd -ms /bin/bash imagebuilder
64-
# sudo chown -R imagebuilder ${{ github.workspace }}/output
60+
- name: add user
61+
run: |
62+
mkdir -p ${{ github.workspace }}/output
63+
sudo useradd -ms /bin/bash imagebuilder
64+
sudo chmod -R 777 ${{ github.workspace }}/output
6565
6666
- name: build openstack image
6767
run: |
68-
docker run --device=/dev/kvm -i --rm -u $(id -u):$(id -g) \
68+
docker run --device=/dev/kvm -i --rm \
6969
-e PACKER_VAR_FILES=/tmp/host/kubernetes.json -e PACKER_LOG -e PACKER_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} \
7070
-v ${{ github.workspace }}/images/capi:/tmp/host -v ${{ github.workspace }}/output:/home/imagebuilder/output:rw \
7171
${{ env.docker_image }} build-qemu-ubuntu-2404-efi

0 commit comments

Comments
 (0)