Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
test:
name: Test CLI
runs-on: ubuntu-latest
runs-on: self-hosted-linux
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -24,7 +24,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.24'
cache: true
# GOCACHE/GOMODCACHE already live on the runner's persistent shared /cache; setup-go's cache step only re-archives it
cache: false

- name: Run Go fmt and vet
run: |
Expand All @@ -42,7 +43,7 @@ jobs:
build:
name: Build and Release CLI
needs: test
runs-on: ubuntu-latest
runs-on: self-hosted-linux
strategy:
matrix:
include:
Expand Down Expand Up @@ -72,7 +73,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.24'
cache: true
# GOCACHE/GOMODCACHE already live on the runner's persistent shared /cache; setup-go's cache step only re-archives it
cache: false

- name: Set VERSION env
run: echo "VERSION=$(git describe --tags --always --dirty)" >> $GITHUB_ENV
Expand All @@ -96,6 +98,8 @@ jobs:
- name: Compress binary
run: |
if [ "${{ matrix.goos }}" = "windows" ]; then
# zip is not baked into the on-prem runner image (GitHub-hosted preinstalls it).
command -v zip >/dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq zip; }
cd dist && zip dr-syncer-cli-${{ matrix.goos }}-${{ matrix.goarch }}.zip dr-syncer-cli-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }}
else
cd dist && tar -czvf dr-syncer-cli-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz dr-syncer-cli-${{ matrix.goos }}-${{ matrix.goarch }}
Expand All @@ -111,7 +115,7 @@ jobs:

release:
name: Create GitHub Release
runs-on: ubuntu-latest
runs-on: self-hosted-linux
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.24'
# GOCACHE/GOMODCACHE already live on the runner's persistent shared /cache; setup-go's cache step only re-archives it
cache: false

- name: Set up kubectl
uses: azure/setup-kubectl@v4
Expand Down Expand Up @@ -140,6 +142,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.24'
# GOCACHE/GOMODCACHE already live on the runner's persistent shared /cache; setup-go's cache step only re-archives it
cache: false

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:
jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
runs-on: self-hosted-linux
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
runs-on: self-hosted-linux
needs: build

# Deploy to the github-pages environment
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ concurrency:

jobs:
e2e-tests:
runs-on: ubuntu-latest
runs-on: self-hosted-linux
timeout-minutes: 60

steps:
Expand All @@ -57,7 +57,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
# GOCACHE/GOMODCACHE already live on the runner's persistent shared /cache; setup-go's cache step only re-archives it
cache: false

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
Loading