Skip to content

Commit 864ba0e

Browse files
Pinned preflight to latest version (#2041)
1 parent b9a7017 commit 864ba0e

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/release-sc.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ jobs:
8989
QUAY_MLSERVER_IMAGE: quay.io/redhat-isv-containers/635670d3624969b495b6936f:${{ github.event.inputs.version }}
9090
- name: Install preflight
9191
run: |
92+
PREFLIGHT_VERSION=$(curl -s https://api.github.com/repos/redhat-openshift-ecosystem/openshift-preflight/releases/latest | jq -r .tag_name)
9293
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/$PREFLIGHT_VERSION/preflight-linux-amd64
9394
chmod u+x preflight-linux-amd64
9495
sudo mv preflight-linux-amd64 /usr/local/bin/preflight
9596
preflight --version
96-
env:
97-
PREFLIGHT_VERSION: 1.10.0
9897
- name: Submit preflight results
9998
run: |
10099
preflight check container \
@@ -159,12 +158,11 @@ jobs:
159158
QUAY_MLSERVER_IMAGE: quay.io/redhat-isv-containers/63567143624969b495b69370:${{ github.event.inputs.version }}
160159
- name: Install preflight
161160
run: |
161+
PREFLIGHT_VERSION=$(curl -s https://api.github.com/repos/redhat-openshift-ecosystem/openshift-preflight/releases/latest | jq -r .tag_name)
162162
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/$PREFLIGHT_VERSION/preflight-linux-amd64
163163
chmod u+x preflight-linux-amd64
164164
sudo mv preflight-linux-amd64 /usr/local/bin/preflight
165165
preflight --version
166-
env:
167-
PREFLIGHT_VERSION: 1.10.0
168166
- name: Submit preflight results
169167
run: |
170168
preflight check container \

.github/workflows/release.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ jobs:
8787
docker push $QUAY_MLSERVER_IMAGE
8888
- name: Install preflight
8989
run: |
90+
PREFLIGHT_VERSION=$(curl -s https://api.github.com/repos/redhat-openshift-ecosystem/openshift-preflight/releases/latest | jq -r .tag_name)
9091
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/$PREFLIGHT_VERSION/preflight-linux-amd64
9192
chmod u+x preflight-linux-amd64
9293
sudo mv preflight-linux-amd64 /usr/local/bin/preflight
9394
preflight --version
94-
env:
95-
PREFLIGHT_VERSION: 1.10.0
9695
- name: Submit preflight results
9796
run: |
9897
preflight check container \
@@ -159,12 +158,11 @@ jobs:
159158
docker push $QUAY_MLSERVER_IMAGE-slim
160159
- name: Install preflight
161160
run: |
161+
PREFLIGHT_VERSION=$(curl -s https://api.github.com/repos/redhat-openshift-ecosystem/openshift-preflight/releases/latest | jq -r .tag_name)
162162
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/$PREFLIGHT_VERSION/preflight-linux-amd64
163163
chmod u+x preflight-linux-amd64
164164
sudo mv preflight-linux-amd64 /usr/local/bin/preflight
165165
preflight --version
166-
env:
167-
PREFLIGHT_VERSION: 1.10.0
168166
- name: Submit preflight results
169167
run: |
170168
preflight check container \
@@ -283,12 +281,11 @@ jobs:
283281
docker push $QUAY_MLSERVER_IMAGE-${{ matrix.runtime }}
284282
- name: Install preflight
285283
run: |
284+
PREFLIGHT_VERSION=$(curl -s https://api.github.com/repos/redhat-openshift-ecosystem/openshift-preflight/releases/latest | jq -r .tag_name)
286285
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/$PREFLIGHT_VERSION/preflight-linux-amd64
287286
chmod u+x preflight-linux-amd64
288287
sudo mv preflight-linux-amd64 /usr/local/bin/preflight
289288
preflight --version
290-
env:
291-
PREFLIGHT_VERSION: 1.10.0
292289
- name: Submit preflight results
293290
run: |
294291
preflight check container \

0 commit comments

Comments
 (0)