42 lines
959 B
YAML
42 lines
959 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: image
|
|
image: plugins/docker
|
|
settings:
|
|
registry: registry.itzana.me
|
|
repo: registry.itzana.me/strafesnet/maptest-bot
|
|
tags:
|
|
- ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
|
- ${DRONE_BRANCH}
|
|
username:
|
|
from_secret: REGISTRY_USER
|
|
password:
|
|
from_secret: REGISTRY_PASS
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
- name: deploy
|
|
image: argoproj/argocd:latest
|
|
commands:
|
|
- argocd login --grpc-web cd.stricity.com --username $USERNAME --password $PASSWORD
|
|
- argocd app --grpc-web set ${DRONE_BRANCH}-maptest-bot --kustomize-image registry.itzana.me/strafesnet/maptest-bot:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
|
environment:
|
|
USERNAME:
|
|
from_secret: ARGO_USER
|
|
PASSWORD:
|
|
from_secret: ARGO_PASS
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/master |