From f0f5c0378763474b6dd13c251451bf9a1eb289f4 Mon Sep 17 00:00:00 2001 From: Refringe Date: Tue, 27 Feb 2024 23:27:50 -0500 Subject: [PATCH] Updates Drone Pipeline - Updates the drone pipeline to actually work. Sorry about the update spam in Discord. >:{} - Updates the build script to exit gracefully when complete. --- .drone.yml | 73 ++++++++++++++++++++++++++-------------------- project/build.ps1 | Bin 4582 -> 4594 bytes 2 files changed, 41 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index adcf681..d11edab 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,32 +1,41 @@ -kind: pipeline -type: docker -name: build - -platform: - os: windows - arch: amd64 - -trigger: - event: - - tag - -steps: - - name: clone-build-project - image: alpine/git - commands: - - git clone https://dev.sp-tarkov.com/SPT-AKI/Build.git C:\Code - - - name: build-spt-release - image: spt-build-environment:latest - environment: - MODULE_DOMAIN: - from_secret: module_domain - commands: - - 'pwsh -File C:\Code\project\build.ps1 -Tag "${DRONE_TAG}"' - volumes: - - name: code - path: C:\Code - -volumes: - - name: code - temp: {} \ No newline at end of file +kind: pipeline +type: docker +name: build + +platform: + os: windows + arch: amd64 + +trigger: + branch: + - main + +clone: + disable: true + +steps: + - name: clone + image: refringe/spt-build-environment:1.0.0 + commands: + - git clone https://dev.sp-tarkov.com/SPT-AKI/Build.git C:\Code + - cd C:\Code + - git checkout ${DRONE_COMMIT} + volumes: + - name: code + path: C:\Code + + - name: build + image: refringe/spt-build-environment:1.0.0 + environment: + MODULE_DOMAIN: + from_secret: MODULE_DOMAIN + commands: + - cd C:\Code + - pwsh -File C:\Code\project\build.ps1 -Tag "${DRONE_TAG}" + volumes: + - name: code + path: C:\Code + +volumes: + - name: code + temp: {} diff --git a/project/build.ps1 b/project/build.ps1 index b2d039204d46de99e361ce4b31822cc088924d11..a28584ad0c43198171433e4db31b25d3fd7be284 100644 GIT binary patch delta 20 bcmaE+{7HGkGeMqIh6;vEh7tw^1_K5FQcMNh delta 7 OcmeyQ{7iYnGeH0lZUe>u