Skip to content

Commit

Permalink
Remove self-hosted runners (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma authored and maximpertsov committed Apr 16, 2024
1 parent c402045 commit 5e878e3
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/license_finder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
license_finder:
if: github.repository_owner == 'viamrobotics'
name: Audit 3rd-Party Licenses
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run license finder
run: license_finder --prepare
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
release:
types: [published]
secrets:
NPM_TOKEN:
required: true
NPM_TOKEN:
required: true

jobs:
publish:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
jobs:
publish_next:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
prepare:
if: github.repository_owner == 'viamrobotics' && startsWith(github.ref_name, 'rc-')
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
outputs:
Expand All @@ -25,7 +25,7 @@ jobs:
if: steps.is_organization_member.outputs.result == 'false'

- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build + Lint + Test
run: |
Expand Down Expand Up @@ -64,19 +64,19 @@ jobs:
- name: Open PR
uses: repo-sync/pull-request@v2
with:
destination_branch: "main"
destination_branch: 'main'
pr_title: ${{ steps.which_version.outputs.version }}
pr_body: This is an auto-generated PR to merge the rc branch back into main upon successful release.

build:
needs: prepare
if: github.repository_owner == 'viamrobotics' && startsWith(github.ref_name, 'rc-')
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: rc-${{ needs.prepare.outputs.version }}

Expand All @@ -96,7 +96,7 @@ jobs:
release:
needs: [prepare, build]
if: github.repository_owner == 'viamrobotics' && startsWith(github.ref_name, 'rc-')
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release_candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
jobs:
prepare:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
outputs:
Expand All @@ -33,7 +33,7 @@ jobs:
with:
organization: viamrobotics
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Cancelling - not an organization member
uses: andymckay/[email protected]
Expand All @@ -49,7 +49,7 @@ jobs:
&& sudo apt install gh -y
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build + Lint + Test
run: |
Expand Down Expand Up @@ -110,12 +110,12 @@ jobs:
build:
needs: prepare
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: rc-${{ needs.prepare.outputs.version }}

Expand All @@ -133,7 +133,7 @@ jobs:
release:
needs: [prepare, build]
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
jobs:
build_lint_test:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build, lint, and test
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_protos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:
jobs:
update-protos:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_READ_TOKEN }}

Expand Down

0 comments on commit 5e878e3

Please sign in to comment.