51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: Container CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
release-build:
|
|
runs-on: echoion-release
|
|
steps:
|
|
- name: Check out source and nested repositories
|
|
uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
ssh-key: ${{ secrets.RELEASE_CHECKOUT_SSH_KEY }}
|
|
persist-credentials: false
|
|
|
|
- name: Verify runner isolation prerequisites
|
|
run: |
|
|
set -eu
|
|
test "$(uname -s)" = Linux
|
|
docker version
|
|
|
|
- name: Build, test, and package without starting Echoion
|
|
env:
|
|
CI_VERSION: 0.0.0-ci.${{ gitea.run_number }}.${{ gitea.run_attempt }}
|
|
run: |
|
|
set -eu
|
|
scripts/release.sh --version "$CI_VERSION"
|
|
|
|
- name: Test release control-plane scripts
|
|
run: |
|
|
set -eu
|
|
bash scripts/tests/test-gitea-tag-verification.sh
|
|
docker run --rm --network none \
|
|
--volume "$PWD:/workspace:ro" \
|
|
--workdir /workspace \
|
|
echoion-release-builder:gcc-16.1.0 \
|
|
python3 scripts/tests/test_aggregate_update_feed.py
|
|
docker run --rm --network none \
|
|
--volume "$PWD:/workspace:ro" \
|
|
--workdir /workspace \
|
|
echoion-release-builder:gcc-16.1.0 \
|
|
python3 scripts/tests/test_gitea_release.py
|