summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml24
-rw-r--r--.woodpecker.yml50
2 files changed, 50 insertions, 24 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index 26eda835f525..000000000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-stages:
- - build
- - publish
-
-build:
- stage: build
- image: registry.stefanwimmer128.io/stefanwimmer128/archlinux-chaotic-paru-user:latest
- before_script:
- paru -Syu --noconfirm
- script:
- - makepkg -s --noconfirm
- artifacts:
- paths:
- - "*.pkg.tar.zst"
- timeout: 2h
-
-publish:
- stage: publish
- image: alpine:latest
- rules:
- - if: $CI_COMMIT_TAG
- script:
- - apk add curl
- - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "zellij-selector-$CI_COMMIT_TAG-any.pkg.tar.zst" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/zellij-selector/$CI_COMMIT_TAG/zellij-selector-$CI_COMMIT_TAG-any.pkg.tar.zst"'
diff --git a/.woodpecker.yml b/.woodpecker.yml
new file mode 100644
index 000000000000..f0faf7cd31d5
--- /dev/null
+++ b/.woodpecker.yml
@@ -0,0 +1,50 @@
+labels:
+ picus: small
+
+steps:
+ build:
+ image: codeberg.org/stefanwimmer128/archlinux-chaotic-paru-user:latest
+ commands:
+ - export HOME=/home/user
+ - sudo chown -R $(id -u):$(id -g) .
+ - paru -Syu --noconfirm
+ - makepkg -s --noconfirm
+ upload:
+ image: woodpeckerci/plugin-s3
+ settings:
+ bucket: zellij-selector
+ source: "*.pkg.tar.zst"
+ target: /${CI_PIPELINE_NUMBER}/
+ path_style: true
+ endpoint: https://minio.stefanwimmer128.xyz/
+ access_key:
+ from_secret: upload_key
+ secret_key:
+ from_secret: upload_secret
+ checksum:
+ image: alpine:latest
+ commands:
+ - sha256sum *.pkg.tar.zst | tee SHA256SUM
+ upload-checksum:
+ image: woodpeckerci/plugin-s3
+ settings:
+ bucket: zellij-selector
+ source: SHA256SUM
+ target: /${CI_PIPELINE_NUMBER}/
+ path_style: true
+ endpoint: https://minio.stefanwimmer128.xyz/
+ access_key:
+ from_secret: upload_key
+ secret_key:
+ from_secret: upload_secret
+ publish:
+ when:
+ event: tag
+ image: woodpeckerci/plugin-gitea-release
+ settings:
+ base_url: https://codeberg.org/
+ files:
+ - zellij-selector-${CI_COMMIT_TAG}-any.pkg.tar.zst
+ - SHA256SUM
+ api_key:
+ from_secret: release_token