Skip to content

Commit

Permalink
Switch from whywaita/setup-lxd to canonical/setup-lxd (#3)
Browse files Browse the repository at this point in the history
Remove no longer necessary manual iptables manipulations.
Also fix layout for the consistency.

Fixes #2.
  • Loading branch information
taurus-forever authored Jan 19, 2023
1 parent 960ecff commit aa61711
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup LXD
uses: whywaita/setup-lxd@v1
with:
lxd_version: latest/stable
uses: canonical/setup-lxd@main

- name: Install rockcraft
run: |
sudo snap install --classic --channel edge rockcraft
sudo iptables -F FORWARD
sudo iptables -P FORWARD ACCEPT
- name: Build ROCK
run: sudo rockcraft pack --verbose
Expand All @@ -27,4 +24,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: spark-rock
path: "spark_*.rock"
path: "spark_*.rock"
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Docker
run: |
sudo snap install docker
sudo addgroup --system docker; sudo adduser $USER docker
newgrp docker
sudo snap disable docker; sudo snap enable docker
- name: Install skopeo
run: |
sudo snap install --devmode --channel edge skopeo
- name: Install yq
run: |
sudo snap install yq
- uses: actions/download-artifact@v3
with:
name: spark-rock
Expand Down

0 comments on commit aa61711

Please sign in to comment.