From 5efe6a8abc83978d53df0af5c6b7d509694740fe Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Tue, 15 Apr 2025 19:30:40 +0200 Subject: [PATCH] Only publish latest versions from latest tags --- .drone.jsonnet | 5 +- .drone.yml | 124 ++----------------------------------------------- 2 files changed, 4 insertions(+), 125 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index d174d80..a5342e7 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -8,6 +8,7 @@ local Build(go, alpine, os, arch) = { arch: arch }, environment: { + GOTOOLCHAIN: "local", CGO_ENABLED: "0", GOOS: os, GOARCH: arch, @@ -93,8 +94,6 @@ local Publish(go, alpine, os, arch, trigger, platforms, extra) = { # [ - Build("1.24", "3.20", "linux", "amd64"), - Build("1.24", "3.20", "linux", "arm64"), Build("1.24", "3.21", "linux", "amd64"), Build("1.24", "3.21", "linux", "arm64"), @@ -103,6 +102,4 @@ local Publish(go, alpine, os, arch, trigger, platforms, extra) = { # modern Publish("1.24", "3.21", "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, ["linux/amd64", "linux/arm64"], {auto_tag: true,}), - # legacy - Publish("1.24", "3.20", "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, ["linux/amd64", "linux/arm64"], {auto_tag: true,}), ] \ No newline at end of file diff --git a/.drone.yml b/.drone.yml index 9725aca..f3f4acc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,91 +1,9 @@ --- environment: - GOTOOLCHAIN: "local" - CGO_ENABLED: "0" - GOARCH: amd64 - GOOS: linux -kind: pipeline -name: build-1.24-alpine3.20-amd64 -platform: - arch: amd64 - os: linux -steps: -- commands: - - apk update - - apk add --no-cache git - - mkdir .bin - - go build -v -o ./.bin/go-away ./cmd/go-away - - go build -v -o ./.bin/test-wasm-runtime ./cmd/test-wasm-runtime - image: golang:1.24-alpine3.20 - name: build -- commands: - - ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm - -make-challenge ./embed/challenge/js-pow-sha256/test/make-challenge.json -make-challenge-out - ./embed/challenge/js-pow-sha256/test/make-challenge-out.json -verify-challenge - ./embed/challenge/js-pow-sha256/test/verify-challenge.json -verify-challenge-out - 0 - depends_on: - - build - image: alpine:3.20 - name: test-wasm-success -- commands: - - ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm - -make-challenge ./embed/challenge/js-pow-sha256/test/make-challenge.json -make-challenge-out - ./embed/challenge/js-pow-sha256/test/make-challenge-out.json -verify-challenge - ./embed/challenge/js-pow-sha256/test/verify-challenge-fail.json -verify-challenge-out - 1 - depends_on: - - build - image: alpine:3.20 - name: test-wasm-fail -type: docker ---- -environment: - GOTOOLCHAIN: "local" - CGO_ENABLED: "0" - GOARCH: arm64 - GOOS: linux -kind: pipeline -name: build-1.24-alpine3.20-arm64 -platform: - arch: arm64 - os: linux -steps: -- commands: - - apk update - - apk add --no-cache git - - mkdir .bin - - go build -v -o ./.bin/go-away ./cmd/go-away - - go build -v -o ./.bin/test-wasm-runtime ./cmd/test-wasm-runtime - image: golang:1.24-alpine3.20 - name: build -- commands: - - ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm - -make-challenge ./embed/challenge/js-pow-sha256/test/make-challenge.json -make-challenge-out - ./embed/challenge/js-pow-sha256/test/make-challenge-out.json -verify-challenge - ./embed/challenge/js-pow-sha256/test/verify-challenge.json -verify-challenge-out - 0 - depends_on: - - build - image: alpine:3.20 - name: test-wasm-success -- commands: - - ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm - -make-challenge ./embed/challenge/js-pow-sha256/test/make-challenge.json -make-challenge-out - ./embed/challenge/js-pow-sha256/test/make-challenge-out.json -verify-challenge - ./embed/challenge/js-pow-sha256/test/verify-challenge-fail.json -verify-challenge-out - 1 - depends_on: - - build - image: alpine:3.20 - name: test-wasm-fail -type: docker ---- -environment: - GOTOOLCHAIN: "local" CGO_ENABLED: "0" GOARCH: amd64 GOOS: linux + GOTOOLCHAIN: local kind: pipeline name: build-1.24-alpine3.21-amd64 platform: @@ -123,10 +41,10 @@ steps: type: docker --- environment: - GOTOOLCHAIN: "local" CGO_ENABLED: "0" GOARCH: arm64 GOOS: linux + GOTOOLCHAIN: local kind: pipeline name: build-1.24-alpine3.21-arm64 platform: @@ -235,43 +153,7 @@ trigger: - production type: docker --- -kind: pipeline -name: publish-1.24-alpine3.20 -platform: - arch: amd64 - os: linux -steps: -- environment: - DOCKER_BUILDKIT: "1" - image: plugins/buildx - name: docker - privileged: true - settings: - auto_tag: true - auto_tag_suffix: alpine3.20 - build_args: - from: alpine:3.20 - from_builder: golang:1.24-alpine3.20 - builder_driver: docker-container - compress: true - password: - from_secret: git_password - platform: - - linux/amd64 - - linux/arm64 - registry: git.gammaspectra.live - repo: git.gammaspectra.live/git/go-away - username: - from_secret: git_username -trigger: - event: - - promote - - tag - target: - - production -type: docker ---- kind: signature -hmac: 8583621811fa483a6594352a8f9eeca7d66f6509f8e36bd2299b9e0723ed1451 +hmac: 8ce795aa7b59f2a3290390df45a469d21b3e5b46230ac33ba0e24865607544d1 ...