rewrite woodpecker v6

This commit is contained in:
Josh 2025-07-30 20:07:25 +00:00
parent c40882ee59
commit 4b73d70c3f

View File

@ -10,16 +10,16 @@ clone:
depth: 50 depth: 50
steps: steps:
# ─── build & push ────────────────────────────────────────── # ── Build & push images ──────────────────────────────
- name: build-and-push - name: build-and-push
image: docker:24.0-cli # only the CLI, we reuse host docker image: docker:24.0-cli # use host Docker
privileged: true privileged: true
volumes: volumes:
- name: docker-sock # mount declared at bottom - name: docker-sock # mount declared below
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- | - |
set -e set -eu
REG=us-central1-docker.pkg.dev/aptivaai-dev/aptiva-repo REG=us-central1-docker.pkg.dev/aptivaai-dev/aptiva-repo
TAG=$(echo "$CI_COMMIT_SHA" | head -c 8) TAG=$(echo "$CI_COMMIT_SHA" | head -c 8)
docker buildx create --use --name woodpecker || true docker buildx create --use --name woodpecker || true
@ -31,7 +31,7 @@ steps:
event: [push, manual] event: [push, manual]
branch: [master] branch: [master]
# ─── deploy staging ──────────────────────────────────────── # ── Deploy to staging ───────────────────────────────
- name: deploy-staging - name: deploy-staging
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
@ -52,7 +52,6 @@ steps:
event: [push, manual] event: [push, manual]
branch: [master] branch: [master]
# ─── global volume declaration (list **not** indented) ─────
volumes: volumes:
- name: docker-sock - name: docker-sock
host: host: