Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use runner group specification #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/clj-build-dedicated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Clojure Build
on:
workflow_call:
inputs:
runner:
runner_group:
required: false
type: string
default: self-hosted
default: build
target_branch:
required: false
type: string
Expand All @@ -14,7 +14,7 @@ jobs:
build:
name: Build App
runs-on:
group: "build"
group: ${{ inputs.runner_group }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/clj-build-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Clojure Build Library
on:
workflow_call:
inputs:
runner:
runner_group:
required: false
type: string
default: self-hosted
default: build
target_branch:
required: false
type: string
Expand All @@ -17,7 +17,8 @@ on:
jobs:
build:
name: Build Library
runs-on: ${{ inputs.runner }}
runs-on:
group: ${{ inputs.runner_group }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/clj-build-test-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ name: Clojure Build and Push Test Image
on:
workflow_call:
inputs:
runner:
runner_group:
required: false
type: string
default: self-hosted
default: build
test_file_path:
required: true
type: string
jobs:
test-image:
name: Build and Push Test Image
runs-on: ${{ inputs.runner }}
runs-on:
group: ${{ inputs.runner_group }}
steps:
- name: check out most recent commit
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,4 +65,4 @@ jobs:
if [[ ${{ contains(github.ref, 'master') }} = true ]]; then
docker tag ${{ steps.vars.outputs.image }}_tests:${{ steps.vars.outputs.branch_tag }} ${{ steps.vars.outputs.image }}_tests:latest
docker push ${{ steps.vars.outputs.image }}_tests:latest
fi
fi
9 changes: 5 additions & 4 deletions .github/workflows/clj-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ name: Clojure Build
on:
workflow_call:
inputs:
runner:
runner_group:
required: false
type: string
default: self-hosted
default: build
target_branch:
required: false
type: string
default: main
jobs:
build:
name: Build App
runs-on: ${{ inputs.runner }}
runs-on:
group: ${{ inputs.runner_group }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -128,4 +129,4 @@ jobs:
name: Release ${{ steps.vars.outputs.version }}
body: 'Docker Image: [${{ steps.vars.outputs.image }}:${{ steps.vars.outputs.version }}](https://github.com/orgs/rentpath/packages/container/package/${{ steps.vars.outputs.rawrepo }})'
draft: false
prerelease: false
prerelease: false
7 changes: 4 additions & 3 deletions .github/workflows/clj-vuln-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Clojure Vulnerability Scan
on:
workflow_call:
inputs:
runner:
runner_group:
required: false
type: string
default: self-hosted
default: build
target_branch:
required: false
type: string
Expand All @@ -17,7 +17,8 @@ on:
jobs:
scan:
name: Scan Dependencies
runs-on: ${{ inputs.runner }}
runs-on:
group: ${{ inputs.runner_group }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down