Skip to content

Commit

Permalink
Don't push, but do build server/jobrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
markspolakovs committed Oct 26, 2024
1 parent 4c7adee commit 4282543
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
type: string
required: true
description: Version to build, also the docker tag
build:
type: string
default: desktop,server,jobrunner
description: Comma-separated list of builds to run
strip_rc:
type: boolean
description: Strip -rc suffix from version number
Expand All @@ -32,6 +36,7 @@ permissions:

jobs:
build-desktop-windows:
if: ${{ contains(inputs.build, 'desktop') }}
runs-on: windows-latest
strategy:
matrix:
Expand Down Expand Up @@ -80,7 +85,7 @@ jobs:

build-docker-server:
runs-on: ubuntu-latest
if: ${{ inputs.push_docker == true }}
if: ${{ contains(inputs.build, 'server') }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -115,7 +120,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
push: true
push: ${{ inputs.push_docker }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ inputs.multi_arch && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
Expand All @@ -133,7 +138,7 @@ jobs:

build-docker-jobrunner:
runs-on: ubuntu-latest
if: ${{ inputs.push_docker == true }}
if: ${{ contains(inputs.build, 'jobrunner') }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -167,7 +172,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
push: true
push: ${{ inputs.push_docker }}
tags: ${{ steps.jr_meta.outputs.tags }}
labels: ${{ steps.jr_meta.outputs.labels }}
platforms: ${{ inputs.multi_arch && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ jobs:
with:
ref: ${{ github.ref }}
tag: ${{ github.ref_name }}
build: server,jobrunner
multi_arch: false
push_docker: false
export_artifacts: true
Expand Down

0 comments on commit 4282543

Please sign in to comment.