2
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-06-10 09:31:18 +09:00
parent 92f6f6a6a3
commit eb227e9b55

View File

@ -10,6 +10,9 @@ steps:
from_secret: USERNAME
PASSWORD:
from_secret: API_KEY
volumes:
- name: place-goose
path: /place-goose
commands:
- git clone https://github.com/pressly/goose.git
- cd goose
@ -17,6 +20,7 @@ steps:
- mv goose ../goose-bin
- cd ..
- curl --user $USERNAME:$PASSWORD --upload-file ./goose-bin https://gitea.service.jazzwhom.top/api/packages/kagami-public/generic/goose/$DRONE_BUILD_NUMBER/goose
- mv ./goose-bin /place-goose/goose
- name: 构建 Goose Docker 包
image: docker:latest
@ -32,8 +36,11 @@ steps:
volumes:
- name: docker-socket
path: /var/run/docker.sock
- name: place-goose
path: /place-goose
commands:
- mv /place-goose/goose ./goose-bin
- echo "$PASSWORD" | docker login -u "$USERNAME" --password-stdin "$DOCKER_REGISTRY"
- docker build -t "$DOCKER_REGISTRY/$DOCKER_ORGANIZATION/$DOCKER_APPLICATION:$DRONE_BUILD_NUMBER" .
- docker build -t "$DOCKER_REGISTRY/$DOCKER_ORGANIZATION/$DOCKER_APPLICATION:latest" .
@ -63,3 +70,6 @@ volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
- name: place-goose
temp:
medium: memory