77
88env :
99 GHCR_REGISTRY : ghcr.io
10- GHCR_UI_IMAGE_NAME : ${{ github.repository }}/ui
10+ GHCR_UI_IMAGE_NAME : " ${{ github.repository }}/ui"
1111 QUAY_REGISTRY : quay.io
1212 QUAY_UI_IMAGE_NAME : instructlab-ui/ui
13- GHCR_PS_IMAGE_NAME : ${{ github.repository }}/pathservice
13+ GHCR_PS_IMAGE_NAME : " ${{ github.repository }}/pathservice"
1414 QUAY_PS_IMAGE_NAME : instructlab-ui/pathservice
1515
1616jobs :
3030
3131 - name : Skip if triggered by GitHub Actions bot
3232 id : check-skip
33- run : |
33+ run : |-
3434 if [[ "$(git log -1 --pretty=format:'%s')" == *"[CI AUTOMATION]:"* ]]; then
3535 echo "Workflow triggered by previous action commit. Skipping."
3636 exit 1
@@ -40,16 +40,16 @@ jobs:
4040 - name : Log in to the GHCR container image registry
4141 uses : docker/login-action@v3
4242 with :
43- registry : ${{ env.GHCR_REGISTRY }}
44- username : ${{ github.actor }}
45- password : ${{ secrets.GITHUB_TOKEN }}
43+ registry : " ${{ env.GHCR_REGISTRY }}"
44+ username : " ${{ github.actor }}"
45+ password : " ${{ secrets.GITHUB_TOKEN }}"
4646
4747 - name : Log in to the Quay container image registry
4848 uses : docker/login-action@v3
4949 with :
50- registry : ${{ env.QUAY_REGISTRY }}
51- username : ${{ secrets.QUAY_USERNAME }}
52- password : ${{ secrets.QUAY_TOKEN }}
50+ registry : " ${{ env.QUAY_REGISTRY }}"
51+ username : " ${{ secrets.QUAY_USERNAME }}"
52+ password : " ${{ secrets.QUAY_TOKEN }}"
5353
5454 - name : Set up Docker Buildx
5555 uses : docker/setup-buildx-action@v3
@@ -58,13 +58,13 @@ jobs:
5858 uses : actions/cache@v4
5959 with :
6060 path : /tmp/.buildx-cache
61- key : ${{ runner.os }}-buildx-${{ github.sha }}
61+ key : " ${{ runner.os }}-buildx-${{ github.sha }}"
6262 restore-keys : |
63- ${{ runner.os }}-buildx-
63+ " ${{ runner.os }}-buildx-"
6464
6565 - name : Get Pull Request Number from Commit
6666 id : get_pr_number
67- uses : actions/github-script@v6
67+ uses : actions/github-script@v7
6868 with :
6969 script : |
7070 console.log("Repository owner:", context.repo.owner);
@@ -99,13 +99,13 @@ jobs:
9999
100100 - name : Combine GHCR Tags with PR Tag
101101 id : combined_ghcr_ui_tags
102- if : ${{ steps.get_pr_number.outputs.result }} != ""
103- run : |
102+ if : ${{ steps.get_pr_number.outputs.result != '' }}
103+ run : |-
104104 TAGS="${{ steps.ghcr_ui_meta.outputs.tags }}"
105105 PR_TAG="pr-${{ steps.get_pr_number.outputs.result }}"
106106 COMBINED_TAGS="${PR_TAG},${TAGS}"
107- echo "COMBINED_TAGS=$COMBINED_TAGS" >> $GITHUB_ENV
108- echo "PR_TAG=$PR_TAG" >> $GITHUB_ENV
107+ echo "COMBINED_TAGS=${ COMBINED_TAGS} " >> " $GITHUB_ENV"
108+ echo "PR_TAG=${ PR_TAG} " >> " $GITHUB_ENV"
109109
110110 - name : Extract Quay metadata (tags, labels) for UI image
111111 id : quay_ui_meta
@@ -115,13 +115,13 @@ jobs:
115115
116116 - name : Combine Quay Tags with PR Tag
117117 id : combined_quay_ui_tags
118- if : ${{ steps.get_pr_number.outputs.result }} != ""
119- run : |
118+ if : ${{ steps.get_pr_number.outputs.result != '' }}
119+ run : |-
120120 TAGS="${{ steps.quay_ui_meta.outputs.tags }}"
121121 PR_TAG="pr-${{ steps.get_pr_number.outputs.result }}"
122122 COMBINED_TAGS="${PR_TAG},${TAGS}"
123- echo "COMBINED_TAGS=$COMBINED_TAGS" >> $GITHUB_ENV
124- echo "PR_TAG=$PR_TAG" >> $GITHUB_ENV
123+ echo "COMBINED_TAGS=${ COMBINED_TAGS} " >> " $GITHUB_ENV"
124+ echo "PR_TAG=${ PR_TAG} " >> " $GITHUB_ENV"
125125
126126 - name : Build and push ui image to ghcr.io
127127 id : push-ui-ghcr
@@ -167,15 +167,15 @@ jobs:
167167 id : update_qa_ui_manifest_image
168168 env :
169169 PR_TAG : ${{ steps.combined_quay_ui_tags.outputs.PR_TAG }}
170- run : |
170+ run : |-
171171 sudo wget https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64 -O /usr/local/bin/yq
172172 sudo chmod +x /usr/local/bin/yq
173- PR_TAG="${PR_TAG}" yq -i '
174- (.images[] | select(.name == "quay.io/instructlab-ui/ui") | .newTag) = '$ PR_TAG'
173+ yq -i '
174+ (.images[] | select(.name == "quay.io/instructlab-ui/ui") | .newTag) = env( PR_TAG)
175175 ' deploy/k8s/overlays/openshift/qa/kustomization.yaml
176176
177177 - name : Commit and push bump QA UI Image manifest
178- run : |
178+ run : |-
179179 git config --global user.name "${GITHUB_ACTOR}"
180180 git config --global user.email "${GITHUB_ACTOR}@users.noreply.${INPUT_ORGANIZATION_DOMAIN}"
181181 git add deploy/k8s/overlays/openshift/qa/kustomization.yaml
@@ -198,7 +198,7 @@ jobs:
198198
199199 - name : Skip if triggered by GitHub Actions bot
200200 id : check-skip
201- run : |
201+ run : |-
202202 if [[ "$(git log -1 --pretty=format:'%s')" == *"[CI AUTOMATION]:"* ]]; then
203203 echo "Workflow triggered by previous action commit. Skipping."
204204 exit 1
@@ -232,7 +232,7 @@ jobs:
232232
233233 - name : Get Pull Request Number from Commit
234234 id : get_pr_number
235- uses : actions/github-script@v6
235+ uses : actions/github-script@v7
236236 with :
237237 script : |
238238 console.log("Repository owner:", context.repo.owner);
@@ -267,13 +267,13 @@ jobs:
267267
268268 - name : Combine GHCR Tags with PR Tag
269269 id : combined_ghcr_ps_tags
270- if : ${{ steps.get_pr_number.outputs.result }} != ""
271- run : |
270+ if : ${{ steps.get_pr_number.outputs.result != '' }}
271+ run : |-
272272 TAGS="${{ steps.ghcr_ps_meta.outputs.tags }}"
273273 PR_TAG="pr-${{ steps.get_pr_number.outputs.result }}"
274274 COMBINED_TAGS="${PR_TAG},${TAGS}"
275- echo "COMBINED_TAGS=$COMBINED_TAGS" >> $GITHUB_ENV
276- echo "PR_TAG=$PR_TAG" >> $GITHUB_ENV
275+ echo "COMBINED_TAGS=${ COMBINED_TAGS} " >> " $GITHUB_ENV"
276+ echo "PR_TAG=${ PR_TAG} " >> " $GITHUB_ENV"
277277
278278 - name : Extract metadata (tags, labels) for pathservice image
279279 id : quay_ps_meta
@@ -283,13 +283,13 @@ jobs:
283283
284284 - name : Combine GHCR Tags with PR Tag
285285 id : combined_quay_ps_tags
286- if : ${{ steps.get_pr_number.outputs.result }} != ""
287- run : |
286+ if : ${{ steps.get_pr_number.outputs.result != '' }}
287+ run : |-
288288 TAGS="${{ steps.quay_ps_meta.outputs.tags }}"
289289 PR_TAG="pr-${{ steps.get_pr_number.outputs.result }}"
290290 COMBINED_TAGS="${PR_TAG},${TAGS}"
291- echo "COMBINED_TAGS=$COMBINED_TAGS" >> $GITHUB_ENV
292- echo "PR_TAG=$PR_TAG" >> $GITHUB_ENV
291+ echo "COMBINED_TAGS=${ COMBINED_TAGS} " >> " $GITHUB_ENV"
292+ echo "PR_TAG=${ PR_TAG} " >> " $GITHUB_ENV"
293293
294294 - name : Build and push QA PS image to ghcr.io
295295 id : push-ps-ghcr
@@ -335,15 +335,15 @@ jobs:
335335 id : update_qa_ps_manifest_image
336336 env :
337337 PR_TAG : ${{ steps.combined_quay_ps_tags.outputs.PR_TAG }}
338- run : |
338+ run : |-
339339 sudo wget https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64 -O /usr/local/bin/yq
340340 sudo chmod +x /usr/local/bin/yq
341- PR_TAG="${PR_TAG}" yq -i '
342- (.images[] | select(.name == "quay.io/instructlab-ui/pathservice ") | .newTag) = '$ PR_TAG'
341+ yq -i '
342+ (.images[] | select(.name == "quay.io/instructlab-ui/ui ") | .newTag) = env( PR_TAG)
343343 ' deploy/k8s/overlays/openshift/qa/kustomization.yaml
344344
345345 - name : Commit and push bump QA PS Image manifest
346- run : |
346+ run : |-
347347 git config --global user.name "${GITHUB_ACTOR}"
348348 git config --global user.email "${GITHUB_ACTOR}@users.noreply.${INPUT_ORGANIZATION_DOMAIN}"
349349 git add deploy/k8s/overlays/openshift/qa/kustomization.yaml
0 commit comments