2024-05-10 12:10:25 +03:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2024-05-10 12:59:06 +03:00
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2024-05-10 13:00:15 +03:00
|
|
|
registry:
|
|
|
|
from_secret: CI_REGISTRY
|
2024-05-10 12:59:06 +03:00
|
|
|
username:
|
2024-05-10 12:44:09 +03:00
|
|
|
from_secret: CI_REGISTRY_USER
|
2024-05-10 12:59:06 +03:00
|
|
|
password:
|
2024-05-10 12:44:09 +03:00
|
|
|
from_secret: CI_REGISTRY_PASSWORD
|
2024-05-10 12:59:06 +03:00
|
|
|
repo:
|
2024-05-10 12:44:09 +03:00
|
|
|
from_secret: CI_APP_IMAGE
|
2024-05-10 12:59:06 +03:00
|
|
|
tags:
|
|
|
|
- latest
|
2024-05-23 15:01:49 +03:00
|
|
|
- name: deploy
|
|
|
|
image: alpine:latest
|
|
|
|
environment:
|
|
|
|
DEPLOYER_TOKEN:
|
|
|
|
from_secret: DEPLOYER_TOKEN
|
|
|
|
DEPLOYER_URL:
|
|
|
|
from_secret: DEPLOYER_URL
|
|
|
|
commands:
|
|
|
|
- apk add --no-cache curl
|
|
|
|
- curl -H \"Authorization: Bearer $DEPLOYER_TOKEN\" $DEPLOYER_URL
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
2024-05-10 12:27:14 +03:00
|
|
|
|
2024-05-10 12:10:25 +03:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2024-05-13 16:57:55 +03:00
|
|
|
branch:
|
|
|
|
- master
|