ci(x64): verify Docker runtime and protect container build context

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-11-07 15:20:16 +01:00
1 parent 804d084484
commit a8a962a4a1
2 files changed
+34

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
.git
.github
dist
release
*.zip
*.dump
*.dump.*
.env
.env.*
!/.env.example
*.pem
*.key
*service-account*.json
node_modules
__pycache__
+19
View File
@@ -86,6 +86,19 @@ jobs:
file dist/landwelle-portal-linux-amd64 | grep -q 'x86-64'
./dist/landwelle-portal-linux-amd64 --version | grep -q 'Landwelle v'
container-amd64:
name: Linux x64 container build and smoke test
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build x64 container
run: docker build --platform linux/amd64 -t landwelle-portal:x64-ci .
- name: Verify x64 container binary
run: |
docker image inspect landwelle-portal:x64-ci --format '{{.Architecture}}' | grep -qx amd64
docker run --rm --entrypoint /usr/local/bin/landwelle-portal landwelle-portal:x64-ci --version | grep -qx 'Landwelle v1.5.75'
frontend-static:
name: JavaScript and deployment-script checks
runs-on: ubuntu-latest
@@ -100,6 +113,12 @@ jobs:
node --check "$file"
done
- name: Validate x64 script execute permissions
run: |
for file in scripts/build-x64.sh scripts/build-migrator-x64.sh scripts/update-portal-on-x64.sh scripts/update-migrations-on-x64.sh scripts/setup-admin-on-x64.sh; do
test -x "$file"
done
- name: Validate shell scripts
run: |
find scripts -name '*.sh' -print0 | while IFS= read -r -d '' file; do