--- kind: pipeline type: docker platform: os: linux arch: amd64 steps: - name: build-backend image: golang:1.24.0 environment: GIT_USER: from_secret: GIT_USER GIT_PASS: from_secret: GIT_PASS commands: - echo "machine git.itzana.me login $${GIT_USER} password $${GIT_PASS}" > ~/.netrc - chmod 600 ~/.netrc - make build-backend when: branch: - master - staging - name: build-validator image: rust:1.92 commands: - make build-validator when: branch: - master - staging - name: build-combobulator image: rust:1.92 commands: - make build-combobulator when: branch: - master - staging - name: build-frontend image: oven/bun:1.3.3 commands: - apt-get update - apt-get install make - make build-frontend when: branch: - master - staging event: - pull_request - name: image-backend 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: Dockerfile context: . depends_on: - build-backend when: branch: - master - staging event: - push - name: image-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: web/Containerfile context: web when: branch: - master - staging event: - push - name: image-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: validation/Containerfile context: . depends_on: - build-validator when: branch: - master - staging event: - push - name: image-combobulator image: plugins/docker settings: registry: registry.itzana.me repo: registry.itzana.me/strafesnet/maptest-combobulator tags: - ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} - ${DRONE_BRANCH} username: from_secret: REGISTRY_USER password: from_secret: REGISTRY_PASS dockerfile: combobulator/Containerfile context: . depends_on: - build-combobulator when: branch: - master - staging event: - push - 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/maptest-api:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} - argocd app --grpc-web set ${DRONE_BRANCH}-maps-service --kustomize-image registry.itzana.me/strafesnet/maptest-frontend:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} - argocd app --grpc-web set ${DRONE_BRANCH}-maps-service --kustomize-image registry.itzana.me/strafesnet/maptest-validator:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} - argocd app --grpc-web set ${DRONE_BRANCH}-maps-service --kustomize-image registry.itzana.me/strafesnet/maptest-combobulator:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} environment: USERNAME: from_secret: ARGO_USER PASSWORD: from_secret: ARGO_PASS depends_on: - image-backend - image-frontend - image-validator - image-combobulator when: branch: - master - staging event: - push # pr dry run - name: build-pr image: alpine commands: - echo "Success!" depends_on: - build-backend - build-validator - build-combobulator - build-frontend when: event: - pull_request --- kind: signature hmac: a654fea05ccf642bb3a41ce777808ff995c8bd7286f2403fae179ce0db025619 ...