aboutsummaryrefslogtreecommitdiff
path: root/.woodpecker/publish.yaml
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-02-08 17:46:00 +0000
committerAlex <alex@adnab.me>2024-02-08 17:46:00 +0000
commit304a89c57b1e951481cd0bf2e56582b41b6d73e4 (patch)
tree00730627bea8498735d4478844f7cf3064b5078f /.woodpecker/publish.yaml
parent710680da1523921f518d12e19f8a2e27628e2da2 (diff)
parent25c2f37667eb3b06bb14869129e33f78a9705b1b (diff)
downloadgarage-304a89c57b1e951481cd0bf2e56582b41b6d73e4.tar.gz
garage-304a89c57b1e951481cd0bf2e56582b41b6d73e4.zip
Merge pull request 'convert drone pipelines to woodpecker' (#708) from woodpecker into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/708
Diffstat (limited to '.woodpecker/publish.yaml')
-rw-r--r--.woodpecker/publish.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.woodpecker/publish.yaml b/.woodpecker/publish.yaml
new file mode 100644
index 00000000..b45d379c
--- /dev/null
+++ b/.woodpecker/publish.yaml
@@ -0,0 +1,32 @@
+when:
+ event:
+ - deployment
+ - cron
+
+depends_on:
+ - release
+
+steps:
+ - name: refresh-index
+ image: nixpkgs/nix:nixos-22.05
+ secrets:
+ - source: garagehq_aws_access_key_id
+ target: AWS_ACCESS_KEY_ID
+ - source: garagehq_aws_secret_access_key
+ target: AWS_SECRET_ACCESS_KEY
+ commands:
+ - mkdir -p /etc/nix && cp nix/nix.conf /etc/nix/nix.conf
+ - nix-shell --attr release --run "refresh_index"
+
+# - name: multiarch-docker
+# image: nixpkgs/nix:nixos-22.05
+# environment:
+# HOME: "/root"
+# secrets:
+# - docker_auth
+# commands:
+# - mkdir -p /root/.docker
+# - echo $DOCKER_AUTH > /root/.docker/config.json
+# - sha512sum /root/.docker/config.json
+# - export CONTAINER_TAG=${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
+# - nix-shell --attr release --run "multiarch_docker"