Compare commits

..
Author SHA1 Message Date
panxiao81 8d70df2128 Merge pull request '在 VM Runner 中构建发布镜像' (#17) from refactor/publish-on-vm into main
test / python (push) Successful in 10s
test / shell (push) Successful in 15s
publish images / publish-images (push) Failing after 0s
Reviewed-on: #17
2026-09-16 18:29:26 +00:00
+2 -19
View File
@@ -17,14 +17,10 @@ on:
jobs: jobs:
publish-images: publish-images:
name: publish-images name: publish-images
runs-on: self-hosted runs-on: [self-hosted, vm]
timeout-minutes: 45 timeout-minutes: 45
permissions: permissions:
contents: read contents: read
container:
image: docker.io/gitea/runner-images:ubuntu-latest@sha256:fd911d7417bfbf0f454530e447da95b58001e1df41bbc5e1a8dd35d432575aae
volumes:
- /run/spire/agent-sockets:/run/spire/agent-sockets:ro
env: env:
PUSH_REGISTRY: zot-push.ad.ddupan.top PUSH_REGISTRY: zot-push.ad.ddupan.top
PULL_REGISTRY: zot.ad.ddupan.top PULL_REGISTRY: zot.ad.ddupan.top
@@ -45,19 +41,6 @@ jobs:
apt-get install --yes --no-install-recommends shellcheck apt-get install --yes --no-install-recommends shellcheck
shellcheck scripts/* shellcheck scripts/*
- name: Fetch pinned SPIRE CLI
shell: bash
run: |
set -euo pipefail
archive=/tmp/spire.tar.gz
curl --fail --location --silent --show-error \
--output "$archive" \
https://github.com/spiffe/spire/releases/download/v1.15.3/spire-1.15.3-linux-amd64-musl.tar.gz
printf '%s %s\n' \
ca1a4d1155317bdd2afc7f36663828a10410c7c840e54725b90b4064b0a301c7 \
"$archive" | sha256sum --check --status
tar -xzf "$archive" -C /tmp spire-1.15.3/bin/spire-agent
- name: Build and publish - name: Build and publish
shell: bash shell: bash
run: | run: |
@@ -75,7 +58,7 @@ jobs:
trap cleanup EXIT trap cleanup EXIT
export DOCKER_CONFIG="$docker_config" export DOCKER_CONFIG="$docker_config"
/tmp/spire-1.15.3/bin/spire-agent api fetch jwt \ /opt/spire/bin/spire-agent api fetch jwt \
-audience zot \ -audience zot \
-socketPath "$SPIRE_AGENT_SOCKET" \ -socketPath "$SPIRE_AGENT_SOCKET" \
-output json >"$jwt_file" -output json >"$jwt_file"