diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c290776d..e8efcb1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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" \ No newline at end of file + run: docker image prune -a -f --filter "until=24h" \ No newline at end of file diff --git a/.github/workflows/drive.yml b/.github/workflows/drive.yml index fafdec2b..8b53cd59 100644 --- a/.github/workflows/drive.yml +++ b/.github/workflows/drive.yml @@ -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