diff --git a/.drone.yml b/.drone.yml index 5bdba13..5513ae6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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" . @@ -62,4 +69,7 @@ steps: volumes: - name: docker-socket host: - path: /var/run/docker.sock \ No newline at end of file + path: /var/run/docker.sock + - name: place-goose + temp: + medium: memory \ No newline at end of file