Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
34417f77bc
commit
be2f9f8330
15
.drone.yml
15
.drone.yml
@ -23,7 +23,7 @@ steps:
|
|||||||
- mkdir -p $HOME/.ssh/
|
- mkdir -p $HOME/.ssh/
|
||||||
- echo "$SSH_KEY" | base64 -d > $HOME/.ssh/id_ed25519
|
- echo "$SSH_KEY" | base64 -d > $HOME/.ssh/id_ed25519
|
||||||
|
|
||||||
- name: build
|
- name: build pr
|
||||||
image: kasperhermansen/cuddle:latest
|
image: kasperhermansen/cuddle:latest
|
||||||
pull: always
|
pull: always
|
||||||
volumes:
|
volumes:
|
||||||
@ -35,7 +35,7 @@ steps:
|
|||||||
- eval `ssh-agent`
|
- eval `ssh-agent`
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
- ssh-add
|
- ssh-add
|
||||||
- cuddle x ci:all
|
- cuddle x ci:pr
|
||||||
environment:
|
environment:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
CUDDLE_SECRETS_PROVIDER: 1password
|
CUDDLE_SECRETS_PROVIDER: 1password
|
||||||
@ -43,7 +43,10 @@ steps:
|
|||||||
CUDDLE_SSH_AGENT: "true"
|
CUDDLE_SSH_AGENT: "true"
|
||||||
OP_SERVICE_ACCOUNT_TOKEN:
|
OP_SERVICE_ACCOUNT_TOKEN:
|
||||||
from_secret: op_service_account_token
|
from_secret: op_service_account_token
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- "load_secret"
|
- "load_secret"
|
||||||
- "build ci"
|
- "build ci"
|
||||||
@ -60,9 +63,7 @@ steps:
|
|||||||
- eval `ssh-agent`
|
- eval `ssh-agent`
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
- ssh-add
|
- ssh-add
|
||||||
- cuddle x build:release:all
|
- cuddle x ci:main
|
||||||
- cuddle x deploy:docs:preview
|
|
||||||
- cuddle x please:release
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
CUDDLE_SECRETS_PROVIDER: 1password
|
CUDDLE_SECRETS_PROVIDER: 1password
|
||||||
@ -75,7 +76,7 @@ steps:
|
|||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
depends_on:
|
depends_on:
|
||||||
- "build"
|
- "build ci"
|
||||||
|
|
||||||
- name: deploy release
|
- name: deploy release
|
||||||
image: kasperhermansen/cuddle:latest
|
image: kasperhermansen/cuddle:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user