add openapi spec to manifests and link from element to manifest #1401
Workflow file for this run
This file contains hidden or 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: build | |
| on: | |
| push: | |
| env: | |
| ARTIFACTS_PATH: artifacts | |
| PROJECT_NAME: genesis_core | |
| REPO_ENDPOINT_PUT: http://10.20.0.1:8082 | |
| jobs: | |
| Build: | |
| runs-on: self-hosted | |
| if : ${{ github.actor != 'dependabot[bot]' }} | |
| strategy: | |
| fail-fast: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build Genesis Core | |
| env: | |
| PUSH_CFG: ${{ secrets.PUSH_CFG }} | |
| run: | | |
| set -eux | |
| mkdir -p ${ARTIFACTS_PATH} | |
| source ~/.profile | |
| VERSION="$(genesis get-version .)" | |
| # Build Genesis Core | |
| genesis build $(pwd) --inventory | |
| # Decode and write the push configuration | |
| echo "$PUSH_CFG" | base64 -d > genesis/genesis.push.yaml | |
| genesis push -c genesis/genesis.push.yaml -t local -f --latest | |
| # Upload the VM image | |
| gzip -k output/genesis-core.raw -c | \ | |
| curl -X PUT -T - "$REPO_ENDPOINT_PUT/${PROJECT_NAME}/${VERSION}/genesis-core.raw.gz" | |
| # Temporary upload step is done in the build script | |
| echo "${VERSION}" > "${ARTIFACTS_PATH}/version.txt" | |
| - name: Upload the build artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: build_artifacts | |
| path: artifacts/ | |