2024-03-26 18:00:05 -04:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build and publish docker image
|
|
|
|
|
|
|
|
steps:
|
2024-04-01 20:06:24 -04:00
|
|
|
#- 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: fedora:latest
|
|
|
|
commands:
|
|
|
|
- yum install --assumeyes openssh
|
|
|
|
- sh deploy.sh
|
|
|
|
environment:
|
|
|
|
SSH_KEY:
|
|
|
|
from_secret: cd_ssh_key
|
2024-03-26 18:00:05 -04:00
|
|
|
trigger:
|
|
|
|
branch:
|
2024-03-26 18:04:01 -04:00
|
|
|
- main
|