Docs: add platform local deployment guide #1425
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: exordos_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 Exordos Core | |
| env: | |
| PUSH_CFG: ${{ secrets.PUSH_CFG }} | |
| run: | | |
| set -eux | |
| mkdir -p ${ARTIFACTS_PATH} | |
| source ~/.profile | |
| VERSION="$(genesis get-version .)" | |
| # Build Exordos 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/exordos-core.raw -c | \ | |
| curl -X PUT -T - "$REPO_ENDPOINT_PUT/${PROJECT_NAME}/${VERSION}/exordos-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/ | |