add continuous deployment step
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1fd1444f97
commit
388e537c0c
32
.drone.yml
32
.drone.yml
|
@ -4,18 +4,26 @@ type: docker
|
|||
name: build and publish docker image
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: gitea_packpub_username
|
||||
password:
|
||||
from_secret: gitea_packpub_password
|
||||
registry: git.hatecomputers.club
|
||||
repo: git.hatecomputers.club/hatecomputers/hatecomputers.club
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
#- name: docker
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# username:
|
||||
# from_secret: gitea_packpub_username
|
||||
# password:
|
||||
# from_secret: gitea_packpub_password
|
||||
# registry: git.hatecomputers.club
|
||||
# repo: git.hatecomputers.club/hatecomputers/hatecomputers.club
|
||||
# tags:
|
||||
# - latest
|
||||
# - main
|
||||
- name: continuous deployment
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add openssh
|
||||
- sh deploy.sh
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: cd_ssh_key
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
|
Loading…
Reference in New Issue