use correct syntax for image
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dovi Cowan 2023-02-21 00:37:16 +00:00
parent f542a59f82
commit 6cd507fb3e
Signed by: dcowan
GPG key ID: C110D77558FBC227

View file

@ -1,25 +1,29 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: deploy-to-dokku name: deploy
steps: steps:
- name: deploy - name: deploy
image: dokku/ci-docker-image image: dokku/ci-docker-image
settings: pull: always
dokku_host: apps1.fnukinternal.net # replace with your Dokku host environment:
dokku_app: dokku-ci-deploy # replace with your Dokku app name DOKKU_HOST: apps1.fnukinternal.net
dokku_key: DOKKU_APP_NAME: dokku-ci-deploy
from_secret: dokku_ssh_key DOKKU_USERNAME: dokku
dokku_git_remote: dokku@apps1.fnukinternal.net:dokku-ci-deploy SSH_PRIVATE_KEY:
dokku_jump_host: 192.168.0.24 # replace with your jump host from_secret: dokku_ssh_key
dokku_jump_user: jumpuser # replace with the user to use on the jump host JUMP_HOST: 192.168.0.24
dokku_jump_key: JUMP_USER: jumpuser
from_secret: dokku_ssh_key JUMP_PRIVATE_KEY:
dokku_force_push: "true" from_secret: dokku_ssh_key
dokku_confirm: "true" commands:
dokku_sync_networks: "true" - mkdir -p ~/.ssh
dokku_build_dir: "." - echo "$JUMP_PRIVATE_KEY" > ~/.ssh/id_rsa_jump
dokku_deploy_branch: main # replace with the branch you want to deploy - chmod 600 ~/.ssh/id_rsa_jump
- echo "Host dokku.example.com" > ~/.ssh/config
- echo " ProxyCommand ssh -W %h:%p $JUMP_USER@$JUMP_HOST -i ~/.ssh/id_rsa_jump" >> ~/.ssh/config
- dokku apps:create $DOKKU_APP_NAME
- dokku git:sync --force $DOKKU_APP_NAME
trigger: trigger:
branch: branch: