Avoid saving files generated by trustd.yaml | "openapi spec" into git #396
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI (global trustify CI) | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
workflow_call: | |
concurrency: | |
group: ci-global-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-upload-for-global-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Run generate | |
run: npm generate | |
- name: save trustify-ui image | |
run: | | |
docker build . -t ghcr.io/trustification/trustify-ui:pr-test -f Dockerfile | |
docker save -o /tmp/trustify-ui.tar ghcr.io/trustification/trustify-ui:pr-test | |
- name: Upload trustify-ui image as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: trustify-ui | |
path: /tmp/trustify-ui.tar | |
retention-days: 1 | |
run-global-ci: | |
needs: build-and-upload-for-global-ci | |
uses: trustification/trustify-ci/.github/workflows/global-ci.yml@main | |
with: | |
artifact: trustify-ui | |
ui_image: ghcr.io/trustification/trustify-ui:pr-test | |
run_api_tests: false |