move image to pipeline level
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Dovi Cowan 2023-02-21 01:56:05 +00:00
parent 1fbe914431
commit 7c0b5411b4
Signed by: dcowan
GPG key ID: C110D77558FBC227

View file

@ -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