beta.fogtype.com/.drone.yml
Nebel 5445a511c2
All checks were successful
continuous-integration/drone/push Build is passing
Update docker Docker tag to v20.10.23
2023-01-21 16:21:48 +00:00

29 lines
901 B
YAML

# yaml-language-server: $schema=https://json.schemastore.org/drone.json
name: deploy
kind: pipeline
type: docker
node:
instance: system
trigger:
event:
- push
branch:
- main
steps:
- name: deploy
image: docker:20.10.23-cli-alpine3.17@sha256:2655039c6abfc8a1d75978c5258fccd5c5cedf880b6cfc72077f076d0672c70a
commands:
- mkdir -p /root/.ssh
- install -v -m 600 /home/ubuntu/.ssh/id_ed25519 /root/.ssh/id_ed25519
- ssh-keyscan beta.fogtype.com >> /root/.ssh/known_hosts
- docker context create --docker=host=ssh://ubuntu@beta.fogtype.com beta
- docker context use beta
- docker compose --project-name=beta up --build --detach
- docker compose --project-directory=example up --detach
volumes:
- name: ssh_key
path: /home/ubuntu/.ssh/id_ed25519
volumes:
- name: ssh_key
host:
path: /home/ubuntu/.ssh/id_ed25519