From c9212a5ec8d6ded62e50b3c8f3097fbc596e19f9 Mon Sep 17 00:00:00 2001 From: Quaternions <krakow20@gmail.com> Date: Thu, 3 Apr 2025 00:12:32 -0700 Subject: [PATCH] drone: do not attempt to deploy pull requests --- .drone.yml | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c368fad..731074c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,6 +25,8 @@ steps: branch: - master - staging + event: + - push - name: frontend image: plugins/docker @@ -44,6 +46,8 @@ steps: branch: - master - staging + event: + - push - name: validator image: plugins/docker @@ -63,6 +67,8 @@ steps: branch: - master - staging + event: + - push - name: deploy image: argoproj/argocd:latest @@ -84,8 +90,68 @@ steps: branch: - master - staging + event: + - push + +# pr dry run + - name: api-pr + image: plugins/docker + settings: + registry: registry.itzana.me + repo: registry.itzana.me/strafesnet/maptest-validator + tags: + - ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} + - ${DRONE_BRANCH} + dockerfile: Containerfile + context: . + dry_run: true + when: + event: + - pull_request + + - name: frontend-pr + image: plugins/docker + settings: + registry: registry.itzana.me + repo: registry.itzana.me/strafesnet/maptest-validator + tags: + - ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} + - ${DRONE_BRANCH} + dockerfile: web/Containerfile + context: web + dry_run: true + when: + event: + - pull_request + + - name: validator-pr + image: plugins/docker + settings: + registry: registry.itzana.me + repo: registry.itzana.me/strafesnet/maptest-validator + tags: + - ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} + - ${DRONE_BRANCH} + dockerfile: validation/Containerfile + context: validation + dry_run: true + when: + event: + - pull_request + + - name: build-pr + image: alpine + commands: + - echo "Success!" + depends_on: + - api-pr + - frontend-pr + - validator-pr + when: + event: + - pull_request --- kind: signature -hmac: 1162b329a9cad12b4c5db0ccf8b8998072b0de9279326f76a493fd0af6794095 +hmac: 11e6d7f1eb839d3798fdcb642ca5523c011bd14c1f3a0343a9c3106bab9ef142 ... -- 2.47.1