shuttle-drone-templates/.drone.yml
Kasper Juul Hermansen 5785061ba9
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update docker.io/kasperhermansen/shuttle-drone docker tag to v1690506770821
2023-07-28 01:33:19 +00:00

56 lines
1.4 KiB
YAML

type: docker
kind: pipeline
name: "shuttle-drone-templates"
steps:
- name: "wait for dind"
image: docker:dind
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_BUILDKIT: 1
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
commands:
- ls /var/run
- set -eu
- sleep 10
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME"
- name: "build"
image: docker.io/kasperhermansen/shuttle-drone:1690506770821
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_BUILDKIT: 1
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
SSH_KEY:
from_secret: gitea_id_ed25519
DRONE_TOKEN:
from_secret: drone_token
commands:
- set -eu
- eval `ssh-agent`
- mkdir -p ~/.ssh
- echo "$SSH_KEY" | base64 -d > ~/.ssh/id_ed25519
- chmod -R 600 ~/.ssh
- ssh-add
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME" docker.io
- shuttle run build
- shuttle run ci
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}