Set a default for runs-on when not overriden by var.
This commit is contained in:
parent
2de76947b8
commit
0e0bae3500
10 changed files with 15 additions and 15 deletions
2
.github/workflows/docker.build.yml
vendored
2
.github/workflows/docker.build.yml
vendored
|
@ -15,7 +15,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
docker-build:
|
docker-build:
|
||||||
name: Build Swarm Load Balancer
|
name: Build Swarm Load Balancer
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: benzine-framework/action-setup-php@main
|
- uses: benzine-framework/action-setup-php@main
|
||||||
- uses: benzine-framework/action-get-datetime@main
|
- uses: benzine-framework/action-get-datetime@main
|
||||||
|
|
4
.github/workflows/docker.clean.yml
vendored
4
.github/workflows/docker.clean.yml
vendored
|
@ -15,7 +15,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
cleanup-delete-candidate-image:
|
cleanup-delete-candidate-image:
|
||||||
name: Delete candidate image
|
name: Delete candidate image
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: vlaurin/action-ghcr-prune@v0.6.0
|
- uses: vlaurin/action-ghcr-prune@v0.6.0
|
||||||
|
@ -30,7 +30,7 @@ jobs:
|
||||||
|
|
||||||
cleanup-untagged-images:
|
cleanup-untagged-images:
|
||||||
name: Delete untagged images
|
name: Delete untagged images
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: vlaurin/action-ghcr-prune@v0.6.0
|
- uses: vlaurin/action-ghcr-prune@v0.6.0
|
||||||
|
|
2
.github/workflows/docker.release.yml
vendored
2
.github/workflows/docker.release.yml
vendored
|
@ -15,7 +15,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
release-ghcr:
|
release-ghcr:
|
||||||
name: GitHub Container Registry
|
name: GitHub Container Registry
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- run: docker login ghcr.io -u ${{ vars.SERVICE_ACCOUNT_USERNAME }} -p ${{ secrets.SERVICE_ACCOUNT_TOKEN }}
|
- run: docker login ghcr.io -u ${{ vars.SERVICE_ACCOUNT_USERNAME }} -p ${{ secrets.SERVICE_ACCOUNT_TOKEN }}
|
||||||
- run: docker pull ${{ env.CANDIDATE_IMAGE }}
|
- run: docker pull ${{ env.CANDIDATE_IMAGE }}
|
||||||
|
|
6
.github/workflows/docker.validate.yml
vendored
6
.github/workflows/docker.validate.yml
vendored
|
@ -18,7 +18,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
validate-install-report:
|
validate-install-report:
|
||||||
name: Run Install Report
|
name: Run Install Report
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: "Pull Candidate Image"
|
- name: "Pull Candidate Image"
|
||||||
|
@ -27,7 +27,7 @@ jobs:
|
||||||
run: docker run --rm ${{ env.CANDIDATE_IMAGE }} /usr/bin/install-report
|
run: docker run --rm ${{ env.CANDIDATE_IMAGE }} /usr/bin/install-report
|
||||||
validate-dive-report:
|
validate-dive-report:
|
||||||
name: Run Dive
|
name: Run Dive
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: "Pull Candidate Image"
|
- name: "Pull Candidate Image"
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
||||||
config-file: ${{ github.workspace }}/.dive-ci.yml
|
config-file: ${{ github.workspace }}/.dive-ci.yml
|
||||||
validate-vulnerability-report:
|
validate-vulnerability-report:
|
||||||
name: Run Trivy
|
name: Run Trivy
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: "Pull Candidate Image"
|
- name: "Pull Candidate Image"
|
||||||
|
|
4
.github/workflows/php.check.yml
vendored
4
.github/workflows/php.check.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
php-stan:
|
php-stan:
|
||||||
name: PHPStan
|
name: PHPStan
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
permissions:
|
permissions:
|
||||||
checks: write # To post annotations
|
checks: write # To post annotations
|
||||||
contents: read # For repo checkout
|
contents: read # For repo checkout
|
||||||
|
@ -20,7 +20,7 @@ jobs:
|
||||||
|
|
||||||
php-cs-fixer:
|
php-cs-fixer:
|
||||||
name: PHP-CS-Fixer
|
name: PHP-CS-Fixer
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
permissions:
|
permissions:
|
||||||
checks: write # For trunk to post annotations
|
checks: write # For trunk to post annotations
|
||||||
contents: read # For repo checkout
|
contents: read # For repo checkout
|
||||||
|
|
2
.github/workflows/tag.release.yml
vendored
2
.github/workflows/tag.release.yml
vendored
|
@ -17,7 +17,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build-tagged-release:
|
build-tagged-release:
|
||||||
name: Build Swarm Load Balancer
|
name: Build Swarm Load Balancer
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Building Tagged Release ${{ env.TAG_IMAGE_GHCR }} & ${{ env.TAG_IMAGE_DOCKER }}"
|
- run: echo "Building Tagged Release ${{ env.TAG_IMAGE_GHCR }} & ${{ env.TAG_IMAGE_DOCKER }}"
|
||||||
|
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
test-integration:
|
test-integration:
|
||||||
name: Integration Tests
|
name: Integration Tests
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Start Loadbalancer
|
- name: Start Loadbalancer
|
||||||
|
@ -37,7 +37,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -xeu
|
set -xeu
|
||||||
docker compose exec test-box curl -s -D - http://b.example.org 2>&1 > b.nossl.http
|
docker compose exec test-box curl -s -D - http://b.example.org 2>&1 > b.nossl.http
|
||||||
grep "HTTP/1.1 200 OK" b.nossl.http
|
grep "HTTP/1.1 200 OK" b.nossl.http
|
||||||
grep "<h1>Website B</h1>" b.nossl.http
|
grep "<h1>Website B</h1>" b.nossl.http
|
||||||
- name: SSL Connect to Web B
|
- name: SSL Connect to Web B
|
||||||
|
|
2
.github/workflows/trunk.cache.yml
vendored
2
.github/workflows/trunk.cache.yml
vendored
|
@ -22,7 +22,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
trunk-cache:
|
trunk-cache:
|
||||||
name: Trunk Cache
|
name: Trunk Cache
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
steps:
|
steps:
|
||||||
|
|
2
.github/workflows/trunk.check.yml
vendored
2
.github/workflows/trunk.check.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trunk-check:
|
trunk-check:
|
||||||
name: Trunk Check Runner
|
name: Trunk Check Runner
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
permissions:
|
permissions:
|
||||||
checks: write # For trunk to post annotations
|
checks: write # For trunk to post annotations
|
||||||
contents: read # For repo checkout
|
contents: read # For repo checkout
|
||||||
|
|
2
.github/workflows/trunk.upgrade.yml
vendored
2
.github/workflows/trunk.upgrade.yml
vendored
|
@ -20,7 +20,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
trunk-upgrade:
|
trunk-upgrade:
|
||||||
name: Upgrade Trunk
|
name: Upgrade Trunk
|
||||||
runs-on: ${{ vars.RUNS_ON }}
|
runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # For trunk to create PRs
|
contents: write # For trunk to create PRs
|
||||||
pull-requests: write # For trunk to create PRs
|
pull-requests: write # For trunk to create PRs
|
||||||
|
|
Loading…
Reference in a new issue