Put PG data to second drive #1118
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 | |
| strategy: | |
| fail-fast: true | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build Genesis Core | |
| run: | | |
| set -eux | |
| mkdir -p ${ARTIFACTS_PATH} | |
| # Install DevTools | |
| python3 -m venv .venv | |
| source .venv/bin/activate | |
| pip install genesis-devtools | |
| VERSION="$(genesis get-version .)" | |
| # Build Genesis Core | |
| genesis build $(pwd) | |
| # 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@v4 | |
| with: | |
| name: build_artifacts | |
| path: artifacts/ | |