parent
673152bc0d
commit
782e34e111
89
.drone.yml
Normal file
89
.drone.yml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: api
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: registry.itzana.me
|
||||||
|
repo: registry.itzana.me/strafesnet/maptest-api
|
||||||
|
tags:
|
||||||
|
- ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
||||||
|
- ${DRONE_BRANCH}
|
||||||
|
username:
|
||||||
|
from_secret: REGISTRY_USER
|
||||||
|
password:
|
||||||
|
from_secret: REGISTRY_PASS
|
||||||
|
dockerfile: Containerfile
|
||||||
|
context: .
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
- staging
|
||||||
|
- ci
|
||||||
|
|
||||||
|
- name: frontend
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: registry.itzana.me
|
||||||
|
repo: registry.itzana.me/strafesnet/maptest-frontend
|
||||||
|
tags:
|
||||||
|
- ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
||||||
|
- ${DRONE_BRANCH}
|
||||||
|
username:
|
||||||
|
from_secret: REGISTRY_USER
|
||||||
|
password:
|
||||||
|
from_secret: REGISTRY_PASS
|
||||||
|
dockerfile: Containerfile
|
||||||
|
context: web
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
- staging
|
||||||
|
- ci
|
||||||
|
|
||||||
|
- name: validator
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: registry.itzana.me
|
||||||
|
repo: registry.itzana.me/strafesnet/maptest-validator
|
||||||
|
tags:
|
||||||
|
- ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
||||||
|
- ${DRONE_BRANCH}
|
||||||
|
username:
|
||||||
|
from_secret: REGISTRY_USER
|
||||||
|
password:
|
||||||
|
from_secret: REGISTRY_PASS
|
||||||
|
dockerfile: Containerfile
|
||||||
|
context: validation
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
- staging
|
||||||
|
- ci
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: argoproj/argocd:latest
|
||||||
|
commands:
|
||||||
|
- echo "Deploy!"
|
||||||
|
# - argocd login --grpc-web cd.stricity.com --username $USERNAME --password $PASSWORD
|
||||||
|
# - argocd app --grpc-web set ${DRONE_BRANCH}-data-service --kustomize-image registry.itzana.me/strafesnet/data-service:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
||||||
|
environment:
|
||||||
|
USERNAME:
|
||||||
|
from_secret: ARGO_USER
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: ARGO_PASS
|
||||||
|
depends_on:
|
||||||
|
- api
|
||||||
|
- frontend
|
||||||
|
- validator
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
- staging
|
||||||
|
- ci
|
Loading…
x
Reference in New Issue
Block a user