Skip to content

Commit

Permalink
Added restrictions for runner selection
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianTrommer committed Nov 5, 2024
1 parent f6f84f2 commit 50e7551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
build-and-push-image:
name: Build and push image
runs-on: self-hosted
runs-on: [self-hosted, build]
outputs:
version: ${{ steps.build.version.outputs.version }}
permissions:
Expand Down Expand Up @@ -126,4 +126,4 @@ jobs:
mv /tmp/.buildx-cache/cache-new/latest /tmp/.buildx-cache/cache/latest
- name: Prune all images older than 1 days from self-hosted runner
run: docker image prune -a --filter "until=24h"
run: docker image prune -a -f --filter "until=24h"
2 changes: 1 addition & 1 deletion .github/workflows/drive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
drive:
runs-on: self-hosted
runs-on: [self-hosted, drive]
env:
AGENT_VERSION: latest
COMPOSE_FILE: ./build/docker-compose.cicd.yaml
Expand Down

0 comments on commit 50e7551

Please sign in to comment.