Skip to content

Commit

Permalink
chore(ci): Move to hosted runners (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKobayashi authored Dec 17, 2024
1 parent b4aa664 commit 22844db
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 32 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,25 @@ env:
IMAGE_NAME: fuelhook

jobs:
create-runner:
name: Create self-hosted Actions runner
runs-on: ubuntu-latest
steps:
- name: Create runner
uses: MattKobayashi/[email protected]
with:
gh-api-token: ${{ secrets.GH_API_TOKEN }}
gha-runner-apt-mirror: http://mirror.overthewire.com.au/ubuntu/
gha-runner-tz: Australia/Brisbane
ssh-host: 100.102.37.118
ssh-user: matthew
ts-oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
ts-oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
ts-tag: ci
# create-runner:
# name: Create self-hosted Actions runner
# runs-on: ubuntu-24.04
# steps:
# - name: Create runner
# uses: MattKobayashi/[email protected]
# with:
# gh-api-token: ${{ secrets.GH_API_TOKEN }}
# gha-runner-apt-mirror: http://mirror.overthewire.com.au/ubuntu/
# gha-runner-tz: Australia/Brisbane
# ssh-host: 100.102.37.118
# ssh-user: matthew
# ts-oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
# ts-oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
# ts-tag: ci
build-publish:
name: Build and publish container image
runs-on: self-hosted
# runs-on: self-hosted
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,25 @@ env:
IMAGE_NAME: fuelhook

jobs:
create-runner:
name: Create self-hosted Actions runner
runs-on: ubuntu-latest
steps:
- name: Create runner
uses: MattKobayashi/[email protected]
with:
gh-api-token: ${{ secrets.GH_API_TOKEN }}
gha-runner-apt-mirror: http://mirror.overthewire.com.au/ubuntu/
gha-runner-tz: Australia/Brisbane
ssh-host: 100.102.37.118
ssh-user: matthew
ts-oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
ts-oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
ts-tag: ci
# create-runner:
# name: Create self-hosted Actions runner
# runs-on: ubuntu-24.04
# steps:
# - name: Create runner
# uses: MattKobayashi/[email protected]
# with:
# gh-api-token: ${{ secrets.GH_API_TOKEN }}
# gha-runner-apt-mirror: http://mirror.overthewire.com.au/ubuntu/
# gha-runner-tz: Australia/Brisbane
# ssh-host: 100.102.37.118
# ssh-user: matthew
# ts-oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
# ts-oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
# ts-tag: ci
build-test:
name: Build and test container image
runs-on: self-hosted
# runs-on: self-hosted
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
Expand Down

0 comments on commit 22844db

Please sign in to comment.