Files
dev-service/.drone.yml
itzaname 2a7283ec7b
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Add drone signature
2025-08-08 19:40:46 -04:00

61 lines
1.2 KiB
YAML

---
kind: pipeline
type: docker
platform:
os: linux
arch: amd64
steps:
- name: build-ui
image: node:24
commands:
- make web
- name: test
image: golang:1.24.0
commands:
- make test
- name: build-backend
image: golang:1.24.0
commands:
- make binary
- name: image
image: plugins/docker
settings:
registry: registry.itzana.me
repo: registry.itzana.me/strafesnet/dev-service
tags:
- ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
- ${DRONE_BRANCH}
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASS
when:
branch:
- master
- staging
- 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}-dev-service --kustomize-image registry.itzana.me/strafesnet/dev-service:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
environment:
USERNAME:
from_secret: ARGO_USER
PASSWORD:
from_secret: ARGO_PASS
when:
branch:
- master
- staging
---
kind: signature
hmac: 45b89736328725d3dabd75fe6e68ba82bb5487f605767edd8930afe433a7727c
...