Skip to content

Commit

Permalink
Fix job step ordering so yq will be installed when k3s version env is…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
mallardduck committed Feb 14, 2025
1 parent de9a60c commit c518b68
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/hl-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set K3S Min/Max Versions
id: set-vars
run: bash ./scripts/k3s-version >> $GITHUB_ENV
- name: Set K3S_VERSION
id: set-vars
run: echo "K3S_VERSION=$K3S_MIN_VERSION" >> $GITHUB_ENV
- name : Set up Go
uses : actions/setup-go@v5
with:
Expand All @@ -50,6 +44,15 @@ jobs:
- uses: azure/setup-helm@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install mikefarah/yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} -O /usr/bin/yq && sudo chmod +x /usr/bin/yq;
- name: Set K3S Min/Max Versions
id: set-vars
run: bash ./scripts/k3s-version >> $GITHUB_ENV
- name: Set K3S_VERSION
id: set-vars
run: echo "K3S_VERSION=$K3S_MIN_VERSION" >> $GITHUB_ENV
- name: build
run: BUILD_TARGET=helm-locker make build
- name : Install k3d
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/hpo-e2e-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set K3S Min/Max Versions
id: set-vars
run: bash ./scripts/k3s-version >> $GITHUB_ENV
- name: Set K3S_VERSION
id: set-vars
run: echo "K3S_VERSION=${{ inputs.k3s_version || env.K3S_MIN_VERSION }}" >> $GITHUB_ENV
- name : setup Go
uses : actions/setup-go@v5
with:
go-version: 1.22
- name: Install mikefarah/yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} -O /usr/bin/yq && sudo chmod +x /usr/bin/yq;
- name: Set K3S Min/Max Versions
id: set-vars
run: bash ./scripts/k3s-version >> $GITHUB_ENV
- name: Set K3S_VERSION
id: set-vars
run: echo "K3S_VERSION=${{ inputs.k3s_version || env.K3S_MIN_VERSION }}" >> $GITHUB_ENV
- name: Perform pre-e2e image build
run: |
BUILD_TARGET=helm-project-operator REPO=${REPO} TAG=${TAG} ./scripts/build;
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/prom-fed-e2e-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set K3S Min/Max Versions
id: set-vars
run: bash ./scripts/k3s-version >> $GITHUB_ENV
- name: Set K3S_VERSION
id: set-vars
run: echo "K3S_VERSION=${{ inputs.k3s_version || env.K3S_MIN_VERSION }}" >> $GITHUB_ENV
- uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'
Expand All @@ -80,6 +74,12 @@ jobs:
source ./scripts/version
echo TAG=$TAG >> $GITHUB_ENV
echo IMAGE=$IMAGE >> $GITHUB_ENV
- name: Set K3S Min/Max Versions
id: set-vars
run: bash ./scripts/k3s-version >> $GITHUB_ENV
- name: Set K3S_VERSION
id: set-vars
run: echo "K3S_VERSION=${{ inputs.k3s_version || env.K3S_MIN_VERSION }}" >> $GITHUB_ENV
-
name: Perform pre-e2e image build
run: |
Expand Down

0 comments on commit c518b68

Please sign in to comment.