update organizations members #2003
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: | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'mkdocs.yml' | |
| - '.markdownlint.yaml' | |
| - '*.md' | |
| env: | |
| ARTIFACTS_PATH: artifacts | |
| PROJECT_NAME: exordos_core | |
| REPO_ENDPOINT_PUT: http://10.20.0.1:8082 | |
| PACKER_VERSION: "1.9.2" | |
| CORE_ENDPOINT_URL: http://10.20.0.2:80/api/core | |
| CORE_USERNAME: "admin" | |
| CORE_PASSWORD: "admin" | |
| jobs: | |
| Build: | |
| runs-on: [ self-hosted, vm ] | |
| if: ${{ github.actor != 'dependabot[bot]' }} | |
| strategy: | |
| fail-fast: true | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 50 | |
| - name: Build Exordos Core | |
| env: | |
| PUSH_CFG: ${{ secrets.PUSH_CFG }} | |
| run: | | |
| set -eux | |
| mkdir -p ${ARTIFACTS_PATH} | |
| VERSION="$(exordos get-version .)" | |
| # Build Exordos Core | |
| export GEN_IMG_FORMAT_CORE=qcow2,zst | |
| exordos build $(pwd) | |
| # Decode and write the push configuration | |
| echo "$PUSH_CFG" | base64 -d > exordos/exordos.push.yaml | |
| exordos push -c exordos/exordos.push.yaml -t local -f --latest | |
| # 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/ | |
| FuncTests: | |
| needs: Build | |
| if : ${{ github.actor != 'dependabot[bot]' }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup `packer` | |
| uses: hashicorp/setup-packer@main | |
| with: | |
| version: ${{ env.PACKER_VERSION }} | |
| - name: Install exordos | |
| run: curl -fsSL https://repo.exordos.com/install.sh | sh | |
| - name: set exordos config | |
| run: | | |
| exordos settings set-realm default --endpoint $CORE_ENDPOINT_URL | |
| exordos settings set-context default --name default --user $CORE_USERNAME --password $CORE_PASSWORD | |
| - name: Install hypervisor | |
| run: | | |
| EXORDOS_BIN=$(which exordos) | |
| sudo $EXORDOS_BIN compute hypervisors init | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: build_artifacts | |
| path: artifacts/ | |
| - name: bootstrap exordos core | |
| run: | | |
| VERSION=$(cat artifacts/version.txt) | |
| exordos bootstrap -i $VERSION -f -m core --admin-password $CORE_PASSWORD --cidr 10.20.0.0/22 | |
| - name: check exordos core | |
| timeout-minutes: 10 | |
| run: | | |
| set -eux | |
| for i in {1..20}; do | |
| if exordos ready_api; then | |
| echo "Exordos Core API is ready" | |
| break | |
| fi | |
| echo "Waiting for Exordos Core API... ($i/20)" | |
| sleep 5 | |
| done | |
| while [ $(exordos ee l -o json -f name=core | jq -r .[0]."status") != "ACTIVE" ]; do | |
| sleep 2 | |
| done | |
| exordos e e show core | |
| exordos compute nodes list | |
| exordos compute hypervisors list | |
| - name: Setup upterm session | |
| uses: owenthereal/action-upterm@v1 | |
| if: ${{ failure() }} | |
| with: | |
| limit-access-to-actor: true | |
| wait-timeout-minutes: 30 |