Build and smoke-test AutoLibrary as a container
Build and test website container / build (push) Successful in 11m33s

This commit is contained in:
KenanZhu committed 2026-11-04 10:45:57 +08:00
1 parent e7bd715243
commit 9065a0d3cf
9 files changed
+219 -9

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
name: Build and test website container
on:
push:
branches: [main, container-ci]
workflow_dispatch:
jobs:
build:
runs-on: linux-amd64-docker-small
timeout-minutes: 35
container:
image: docker:29.1.3-cli
steps:
- name: Install checkout tools
shell: sh
run: apk add --no-cache bash git
- name: Check out the pushed commit
uses: builtin:checkout
with:
ref: ${{ gitea.sha }}
persist-credentials: false
- name: Build and test the image
shell: bash
env:
RELEASE_SHA: ${{ gitea.sha }}
run: |
set -euo pipefail
docker info --format '{{range .SecurityOptions}}{{println .}}{{end}}' | grep -Fx 'name=rootless'
image="autolibrary-web:${RELEASE_SHA}"
trap 'docker image rm "$image" >/dev/null || true' EXIT
docker build -t "$image" .
bash deploy/smoke-container.sh "$image"
+3 -4
View File
@@ -1,12 +1,11 @@
name: Deploy AutoLibrary Website
name: Deploy native AutoLibrary service
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: linux-amd64-docker-small
runs-on: autolibrary-native-deploy
steps:
- name: Check out the pushed commit
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2