Skip to content

Commit 47a90b0

Browse files
committed
🌱 [backport release-0.6] Update ci-global.yml (konveyor#2179)(konveyor#2186)
Backport of: konveyor#2179 Backport of: konveyor#2186 With `upload-artifact@v3` deprecated [1] and shut off, move to use the `global-ci-bundle.yml` workflow for global CI. This change drops the need for artifacts and just uses the ttl.sh service [2]. This technique is already being used in a few other Konveyor projects as well. A recent change in the UI tests repo [3] changed the basic CI testing suite from `@tier0` to `@ci`. Updating the CI workflow to use the new tier. [1]: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ [2]: https://ttl.sh [3]: konveyor/tackle-ui-tests#1351 --------- Signed-off-by: Scott J Dickerson <[email protected]>
1 parent 9edd0e0 commit 47a90b0

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/ci-global.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,25 @@ concurrency:
3939
jobs:
4040
build-and-upload-for-global-ci:
4141
runs-on: ubuntu-latest
42+
outputs:
43+
IMG_NAME: ${{ steps.container.outputs.IMG_NAME }}
4244
steps:
4345
- uses: actions/checkout@v4
4446

45-
- name: save tackle2-ui image
47+
- id: container
48+
name: build the tackle2-ui container
49+
env:
50+
IMG_NAME: ttl.sh/tackle2-ui-${{ github.sha }}:2h
4651
run: |
47-
docker build . -t quay.io/konveyor/tackle2-ui:latest
48-
docker save -o /tmp/tackle2-ui.tar quay.io/konveyor/tackle2-ui:latest
49-
50-
- name: Upload tackle2-ui image as artifact
51-
uses: actions/upload-artifact@v3
52-
with:
53-
name: tackle2-ui
54-
path: /tmp/tackle2-ui.tar
55-
retention-days: 1
52+
echo "IMG_NAME=${IMG_NAME}" >> "$GITHUB_OUTPUT"
53+
docker build . -t ${IMG_NAME}
54+
docker push ${IMG_NAME}
5655
5756
run-global-ci:
5857
needs: build-and-upload-for-global-ci
59-
uses: konveyor/ci/.github/workflows/global-ci.yml@main
58+
uses: konveyor/ci/.github/workflows/global-ci-bundle.yml@main
6059
with:
61-
component_name: tackle2-ui
60+
tackle_ui: ${{ needs.build-and-upload-for-global-ci.outputs.IMG_NAME }}
6261
run_api_tests: false
62+
run_ui_tests: true
63+
ui_test_tags: "@ci"

0 commit comments

Comments
 (0)