From dd5b2c54bfb9133a0b17a226cef5c26b1d62984a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 29 Nov 2024 16:00:44 -0800 Subject: [PATCH] ci --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3ae824c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +--- +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/maps-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}-maps-service --kustomize-image registry.itzana.me/strafesnet/maps-service:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} + environment: + USERNAME: + from_secret: ARGO_USER + PASSWORD: + from_secret: ARGO_PASS + when: + branch: + - master + - staging