Skip to content

Commit

Permalink
Switches CI workflow to use OCI runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanduplessis committed Mar 12, 2024
1 parent 363f66c commit 31124eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .cirun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Self-Hosted Github Action Runners on Oracle Cloud via Cirun.io
# Reference: https://docs.cirun.io/reference/yaml
runners:
- name: "oci-cncf-runner"
cloud: "oracle"
# https://docs.oracle.com/en-us/iaas/Content/Compute/References/computeshapes.htm#vm-standard
instance_type: "VM.Standard.E4.Flex"
# https://docs.oracle.com/en-us/iaas/images/
machine_image: "ocid1.image.oc1.us-sanjose-1.aaaaaaaavslpj7yhhuswzti6cucy2qofpb3vbijj4tw5q53d7j3dwpnxj7ta"
# https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
region: "us-sanjose-1"
# Add this label in the "runs-on" param in .github/workflows/<workflow-name>.yml
# So that this runner is created for running the workflow
labels:
- "oci-cncf-runner"
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ env:
AWS_USR: ${{ secrets.AWS_USR }}

jobs:
detect-noop:
runs-on: ubuntu-20.04
detect-noop:
runs-on: "oci-cncf-runner--${{ github.run_id }}"
outputs:
noop: ${{ steps.noop.outputs.should_skip }}
steps:
Expand All @@ -40,7 +40,7 @@ jobs:
concurrent_skipping: false

lint:
runs-on: ubuntu-20.04
runs-on: "oci-cncf-runner--${{ github.run_id }}"
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true'

Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
version: ${{ env.GOLANGCI_VERSION }}

check-diff:
runs-on: ubuntu-20.04
runs-on: "oci-cncf-runner--${{ github.run_id }}"
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true'

Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
run: make check-diff

unit-tests:
runs-on: ubuntu-20.04
runs-on: "oci-cncf-runner--${{ github.run_id }}"
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true'

Expand Down

0 comments on commit 31124eb

Please sign in to comment.