Skip to content

Commit

Permalink
add tests, missing binaries and correct paths
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydin <[email protected]>
  • Loading branch information
developer-guy committed Apr 17, 2024
1 parent 958c24a commit 0d2aef1
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions actions-runner-controller.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: actions-runner-controller
version: 0.9.0
epoch: 1
version: 0.9.1
epoch: 0
description: Kubernetes controller for GitHub Actions self-hosted runners
copyright:
- license: Apache-2.0
Expand All @@ -18,24 +18,25 @@ pipeline:
with:
repository: https://github.com/actions/actions-runner-controller
tag: gha-runner-scale-set-${{package.version}}
expected-commit: 4357525445b0b77388af4e1f171b5b7bd9b116a4

# Ref: https://github.com/actions/actions-runner-controller/blob/gha-runner-scale-set-0.5.0/Dockerfile#L35
- uses: go/bump
with:
deps: github.com/cloudflare/[email protected]
expected-commit: 9e191cdd21621f4e43023e0bdbbd2ff9b139c8a6

- uses: go/build
with:
packages: .
output: manager
ldflags: -s -w
ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}' -X 'github.com/actions/actions-runner-controller/build.CommitSHA=$(git rev-parse HEAD)'

- uses: go/build
with:
packages: ./cmd/githubrunnerscalesetlistener
output: github-runnerscaleset-listener
ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}'
ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}' -X 'github.com/actions/actions-runner-controller/build.CommitSHA=$(git rev-parse HEAD)'

- uses: go/build
with:
packages: ./cmd/ghalistener
output: ghalistener
ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}' -X 'github.com/actions/actions-runner-controller/build.CommitSHA=$(git rev-parse HEAD)'

- uses: go/build
with:
Expand Down Expand Up @@ -64,10 +65,27 @@ subpackages:
- runs: |
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/manager ${{targets.subpkgdir}}/manager
ln -sf /usr/bin/ghalistener ${{targets.subpkgdir}}/ghalistener
update:
enabled: true
github:
identifier: actions/actions-runner-controller
strip-prefix: gha-runner-scale-set-
tag-filter: gha-runner-scale-set-

test:
environment:
contents:
packages:
- ${{package.name}}-compat
pipeline:
- runs: |
set +e
/manager -h
/ghalistener -h
github-runnerscaleset-listener -h
ghalistener -h
github-webhook-server -h
actions-metrics-server -h
sleep -h

0 comments on commit 0d2aef1

Please sign in to comment.