Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbeedy committed Jan 25, 2024
1 parent 65ec77a commit ba7e7f0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-and-publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: Setup lxd controller
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
run: |
/usr/bin/sudo snap install lxd --channel=latest/stable
/usr/bin/sudo snap refresh lxd --channel=latest/stable
/usr/bin/sudo lxd waitready
/usr/bin/sudo lxd init --auto
/usr/bin/sudo chmod a+wr /var/snap/lxd/common/lxd/unix.socket
/snap/bin/lxc network set lxdbr0 ipv6.address none
/usr/bin/bash -c sudo usermod -a -G lxd $USER
- name: Setup python
uses: actions/setup-python@v4
with:
Expand All @@ -29,7 +34,7 @@ jobs:
poetry install
- name: Build democluster image
run: |
poetry run image-factory build
poetry run image-factory build democluster
- name: Upload democluster image to s3
uses: jakejarvis/s3-sync-action@master
Expand Down

0 comments on commit ba7e7f0

Please sign in to comment.