Skip to content

Commit

Permalink
referance var directly instead of using env
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoconnor committed Sep 10, 2024
1 parent 282d769 commit 9a07d0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dev-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- 'VERSION'

env:
DOCKER_JOBS_RUNS_ON: ${{ vars.DOCKER_JOBS_RUNS_ON || 'ubuntu-latest' }}
GHCR_REGISTRY: ghcr.io
GHCR_REPOSITORY: raft-tech
IB_REGISTRY: registry1.dso.mil
Expand All @@ -21,7 +20,7 @@ env:

jobs:
docker:
runs-on: ${{ env.DOCKER_JOBS_RUNS_ON }}
runs-on: ${{ vars.DOCKER_JOBS_RUNS_ON || 'ubuntu-latest' }}
steps:
# - name: Random Delay to avoid DDoS behavior against registries.
# run: sleep $((RANDOM % 31))
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- completed

env:
DOCKER_JOBS_RUNS_ON: ${{ vars.DOCKER_JOBS_RUNS_ON || 'ubuntu-latest' }}
GHCR_REGISTRY: ghcr.io
GHCR_REPOSITORY: raft-tech
IB_REGISTRY: registry1.dso.mil
Expand All @@ -21,7 +20,7 @@ env:

jobs:
ghcr_build_push:
runs-on: ${{ env.DOCKER_JOBS_RUNS_ON }}
runs-on: ${{ vars.DOCKER_JOBS_RUNS_ON || 'ubuntu-latest' }}
steps:

- name: Checkout repository
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
pull_request:

env:
DOCKER_JOBS_RUNS_ON: ${{ vars.DOCKER_JOBS_RUNS_ON || 'ubuntu-latest' }}
GHCR_REGISTRY: ghcr.io
GHCR_REPOSITORY: raft-tech
IB_REGISTRY: registry1.dso.mil
Expand All @@ -17,7 +16,7 @@ env:

jobs:
docker:
runs-on: ${{ env.DOCKER_JOBS_RUNS_ON }}
runs-on: ${{ vars.DOCKER_JOBS_RUNS_ON || 'ubuntu-latest' }}
steps:

- name: Checkout repository
Expand Down

0 comments on commit 9a07d0d

Please sign in to comment.