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 b2d0392..a28584a 100644 Binary files a/project/build.ps1 and b/project/build.ps1 differ