dgd-backupper-php/.drone.yml

30 lines
574 B
YAML

kind: pipeline
name: default
type: docker
steps:
# - name: composer
# pull: if-not-exists
# image: composer
# commands:
# - composer install --prefer-dist
#
#
# - name: test
# image: lorisleiva/laravel-docker
# commands:
# - ./vendor/bin/phpunit
- name: github
image: alpine/git
environment:
SSH_KEY:
from_secret: id_rsa
SSH_KEY_PUB:
from_secret: id_rsa_pub
commands:
- mkdir ~/.ssh
- echo $SSH_KEY > ~/.ssh/id_rsa
- echo $SSH_KEY_PUB > ~/.ssh/id_rsa.pub
- ssh-add ~/.ssh/id_rsa