2023-04-07 19:32:12 +02:00
|
|
|
type: docker
|
|
|
|
kind: pipeline
|
2023-04-07 19:32:55 +02:00
|
|
|
name: "shuttle-drone-templates"
|
2023-04-07 19:32:12 +02:00
|
|
|
steps:
|
2023-04-07 21:04:20 +02:00
|
|
|
- name: test
|
|
|
|
image: docker:dind
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
2023-04-07 21:06:37 +02:00
|
|
|
environment:
|
|
|
|
#DOCKER_BUILDKIT: 1
|
|
|
|
DOCKER_PASSWORD:
|
|
|
|
from_secret: docker_password
|
|
|
|
DOCKER_USERNAME:
|
|
|
|
from_secret: docker_username
|
2023-04-07 21:04:20 +02:00
|
|
|
commands:
|
|
|
|
- ls /var/run
|
|
|
|
- set -eu
|
|
|
|
- sleep 10
|
2023-04-07 21:41:46 +02:00
|
|
|
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME"
|
2023-04-07 19:32:12 +02:00
|
|
|
- name: "build"
|
2023-04-07 21:00:57 +02:00
|
|
|
image: docker.io/kasperhermansen/shuttle-drone:1680894029336
|
2023-04-07 19:32:12 +02:00
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
environment:
|
2023-04-07 19:47:54 +02:00
|
|
|
#DOCKER_BUILDKIT: 1
|
2023-04-07 19:38:31 +02:00
|
|
|
DOCKER_PASSWORD:
|
2023-04-07 19:43:17 +02:00
|
|
|
from_secret: docker_password
|
2023-04-07 19:38:31 +02:00
|
|
|
DOCKER_USERNAME:
|
|
|
|
from_secret: docker_username
|
2023-04-07 19:32:12 +02:00
|
|
|
commands:
|
2023-04-07 20:58:01 +02:00
|
|
|
- set -eu
|
2023-04-07 20:56:35 +02:00
|
|
|
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME" docker.io
|
2023-04-07 19:32:12 +02:00
|
|
|
- shuttle run build
|
|
|
|
services:
|
|
|
|
- name: docker
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
temp: {}
|