Skip to content

Commit

Permalink
cancel concurrent workflow (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
louiseschmidtgen authored Oct 7, 2024
1 parent d097519 commit 72d769f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/k8s-snap-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build K8-dqlite
Expand All @@ -19,7 +23,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: "3.8"
- name: Install tox
run: pip install tox
- name: Install Go
Expand All @@ -37,7 +41,7 @@ jobs:
sg lxd -c 'lxc version'
- name: Build k8s-dqlite
run: |
make static
make static
- name: Unpack Snap
run: |
sudo unsquashfs -d snap-unpack-dir k8s.snap
Expand Down Expand Up @@ -67,4 +71,3 @@ jobs:
with:
name: inspection-reports
path: ${{ github.workspace }}/inspection-reports.tar.gz

10 changes: 4 additions & 6 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@ and connect to the Dqlite database.

Follow the guide for MicroK8s steps 1-5 while changing the snap name to `k8s`.

Step 5:
Stop k8s-dqlite included in the snap:
5. Stop k8s-dqlite included in the snap:

```bash
```
sudo snap stop k8s.k8s-dqlite --disable
```

Step 6:
This step is different as it uses a different path for the storage directory and the listen address:
6. This step is different as it uses a different path for the storage directory and the listen address:

```bash
```
cd k8s-dqlite
make static
sudo ./bin/static/k8s-dqlite \
Expand Down

0 comments on commit 72d769f

Please sign in to comment.