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
|
type: docker
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
image: bitnami/git:2.39.2
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
BRANCH: main
|
BRANCH: main
|
||||||
DOKKU_HOST: apps1.fnukinternal.net
|
DOKKU_HOST: apps1.fnukinternal.net
|
||||||
|
@ -13,7 +19,6 @@ environment:
|
||||||
steps:
|
steps:
|
||||||
- name: configure-environment
|
- name: configure-environment
|
||||||
pull: always
|
pull: always
|
||||||
image: bitnami/git:2.39.2
|
|
||||||
environment:
|
environment:
|
||||||
SSH_PRIVATE_KEY:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: dokku_ssh_key
|
from_secret: dokku_ssh_key
|
||||||
|
@ -32,11 +37,9 @@ steps:
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
- apt-get update && apt-get install git -y
|
- apt-get update && apt-get install git -y
|
||||||
- name: add-remote
|
- name: add-remote
|
||||||
image: bitnami/git:2.39.2
|
|
||||||
commands:
|
commands:
|
||||||
- git remote add dokku dokku:$DOKKU_APP_NAME
|
- git remote add dokku dokku:$DOKKU_APP_NAME
|
||||||
- name: push-to-dokku
|
- name: push-to-dokku
|
||||||
image: bitnami/git:2.39.2
|
|
||||||
commands:
|
commands:
|
||||||
- git push dokku $BRANCH
|
- git push dokku $BRANCH
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue