move image to pipeline level
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
1fbe914431
commit
7c0b5411b4
1 changed files with 6 additions and 3 deletions
|
@ -2,6 +2,12 @@ kind: pipeline
|
|||
type: docker
|
||||
name: deploy
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
image: bitnami/git:2.39.2
|
||||
|
||||
environment:
|
||||
BRANCH: main
|
||||
DOKKU_HOST: apps1.fnukinternal.net
|
||||
|
@ -13,7 +19,6 @@ environment:
|
|||
steps:
|
||||
- name: configure-environment
|
||||
pull: always
|
||||
image: bitnami/git:2.39.2
|
||||
environment:
|
||||
SSH_PRIVATE_KEY:
|
||||
from_secret: dokku_ssh_key
|
||||
|
@ -32,11 +37,9 @@ steps:
|
|||
- chmod 600 ~/.ssh/id_rsa
|
||||
- apt-get update && apt-get install git -y
|
||||
- name: add-remote
|
||||
image: bitnami/git:2.39.2
|
||||
commands:
|
||||
- git remote add dokku dokku:$DOKKU_APP_NAME
|
||||
- name: push-to-dokku
|
||||
image: bitnami/git:2.39.2
|
||||
commands:
|
||||
- git push dokku $BRANCH
|
||||
|
||||
|
|
Loading…
Reference in a new issue