ci: use host network for Buildah image build
ci/woodpecker/manual/ci Pipeline was successful
ci/woodpecker/manual/release-backend Pipeline was successful

This commit is contained in:
justme committed 2026-10-02 11:39:48 +08:00
1 parent dde7beee15
commit 2150849529
1 file changed
+1 -1
+1 -1
View File
@@ -49,5 +49,5 @@ steps:
- printf '%s' "$ZOT_PASSWORD" | buildah login --tls-verify=false "$ZOT_REGISTRY" --username "$ZOT_USERNAME" --password-stdin - printf '%s' "$ZOT_PASSWORD" | buildah login --tls-verify=false "$ZOT_REGISTRY" --username "$ZOT_USERNAME" --password-stdin
- trap 'buildah logout "$ZOT_REGISTRY" >/dev/null 2>&1 || true' EXIT - trap 'buildah logout "$ZOT_REGISTRY" >/dev/null 2>&1 || true' EXIT
- image="$ZOT_REGISTRY/justme/webdrop-api:$release_tag" - image="$ZOT_REGISTRY/justme/webdrop-api:$release_tag"
- buildah bud --format docker --platform linux/amd64 --tag "$image" --file server/Dockerfile . - buildah bud --network host --format docker --platform linux/amd64 --tag "$image" --file server/Dockerfile .
- buildah push --tls-verify=false "$image" "docker://$image" - buildah push --tls-verify=false "$image" "docker://$image"