From 7b1851065adb3d7b296aaf9a1f5c6f83e664cc55 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 1 Sep 2026 12:19:02 +0000 Subject: [PATCH] Update .gitea/workflows/actions.yaml --- .drone.yml | 69 ----------------------------------- .gitea/workflows/actions.yaml | 57 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 69 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/actions.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 50d3358..0000000 --- a/.drone.yml +++ /dev/null @@ -1,69 +0,0 @@ -kind: pipeline -type: kubernetes -name: 'Golang Build' - -environment: - SKOPEO_VERSION: v1.13.3 - -clone: - disable: true - -steps: - -- name: Clone skopeo source repository - image: bv11-cr01.bessems.eu/proxy/alpine/git - commands: - - git clone https://github.com/containers/skopeo.git . - - git checkout tags/$SKOPEO_VERSION - when: - status: - - success - -- name: Build binary (Linux) - depends_on: - - Clone skopeo source repository - image: bv11-cr01.bessems.eu/proxy/library/golang - commands: - - apt-get update && apt-get install -y go-md2man - - | - make \ - BUILDTAGS=containers_image_openpgp \ - GO_DYN_FLAGS= - - bin/skopeo --version - environment: - CGO_ENABLED: 0 - -- name: Build binary (Windows) - depends_on: - - Clone skopeo source repository - image: bv11-cr01.bessems.eu/proxy/library/golang - commands: - - apt-get update && apt-get install -y go-md2man - - | - make \ - BUILDTAGS=containers_image_openpgp \ - GO_DYN_FLAGS= \ - bin/skopeo.windows.amd64.exe - environment: - CGO_ENABLED: 0 - -- name: Upload binaries - depends_on: - - Build binary (Linux) - - Build binary (Windows) - image: bv11-cr01.bessems.eu/proxy/library/golang - commands: - - | - curl \ - --header "Authorization: token $GIT_APIKEY" \ - --upload-file bin/skopeo \ - https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo_linux_amd64 - - | - curl \ - --header "Authorization: token $GIT_APIKEY" \ - --upload-file bin/skopeo.windows.amd64.exe \ - https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo_windows_amd64.exe - environment: - GIT_APIKEY: - from_secret: git_apikey - GIT_USERNAME: djpbessems diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml new file mode 100644 index 0000000..49ff089 --- /dev/null +++ b/.gitea/workflows/actions.yaml @@ -0,0 +1,57 @@ +name: build-skopeo-binaries +on: [push] + +env: + SKOPEO_VERSION: v1.24.0 + +jobs: + + build_linux: + name: Build binary (Linux) + runs-on: ubuntu-latest + container: code.spamasaurus.com/djpbessems/act-runner-extended:1.0.0-cth20250815 + env: + CGO_ENABLED: 0 + steps: + - name: Git clone and checkout tag + run: | + git clone https://github.com/containers/skopeo.git . + git checkout tags/$SKOPEO_VERSION + - name: Build Linux binary + run: | + apt-get update && apt-get install -y go-md2man + make \ + BUILDTAGS=containers_image_openpgp \ + GO_DYN_FLAGS= + bin/skopeo --version + - name: Upload linux binaries to package registry + run: | + curl \ + --header "Authorization: token $GIT_APIKEY" \ + --upload-file bin/skopeo \ + https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo_linux_amd64 + + build_windows: + name: Build binary (Windows) + runs-on: ubuntu-latest + container: code.spamasaurus.com/djpbessems/act-runner-extended:1.0.0-cth20250815 + env: + CGO_ENABLED: 0 + steps: + - name: Git clone and checkout tag + run: | + git clone https://github.com/containers/skopeo.git . + git checkout tags/$SKOPEO_VERSION + - name: Build Windows binary + run: | + apt-get update && apt-get install -y go-md2man + make \ + BUILDTAGS=containers_image_openpgp \ + GO_DYN_FLAGS= \ + bin/skopeo.windows.amd64.exe + - name: Upload Windows binaries to package registry + run: | + curl \ + --header "Authorization: token $GIT_APIKEY" \ + --upload-file bin/skopeo.windows.amd64.exe \ + https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo_windows_amd64.exe