Skip to content

Commit

Permalink
Merge pull request #29 from canonical/self-hosted-runners
Browse files Browse the repository at this point in the history
Run CI on self-hosted runners
  • Loading branch information
Mehdi-Bendriss authored Aug 2, 2024
2 parents 1ab601a + f11c3c3 commit ede6b68
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:
name: Build Rock
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, X64, jammy, large]
timeout-minutes: 30
outputs:
rock-file: ${{ steps.build-snap.outputs.rock }}
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Install required dependencies
run: |
# docker
sudo snap install docker
sudo snap install docker --channel=latest/stable
sudo addgroup --system docker; sudo adduser $USER docker
newgrp docker
sudo snap disable docker; sudo snap enable docker
Expand Down Expand Up @@ -80,6 +80,18 @@ jobs:
with:
name: charmed_opensearch_rock_amd64
path: .

- name: Install required dependencies
run: |
# docker
sudo snap install docker --channel=latest/stable
sudo addgroup --system docker; sudo adduser $USER docker
newgrp docker
sudo snap disable docker; sudo snap enable docker
# skopeo
sudo snap install --devmode --channel edge skopeo
sudo snap install yq
- name: Create local image
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

publish:
name: publish
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, X64, jammy, large]
timeout-minutes: 15
needs:
- ci-tests
Expand Down

0 comments on commit ede6b68

Please sign in to comment.