From bec5daa3772fa5e20c5f0addf2346ed28a835f14 Mon Sep 17 00:00:00 2001 From: Nikurasu Date: Tue, 11 Apr 2023 14:10:47 +0200 Subject: [PATCH] Add ci pipeline --- .woodpecker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..6f56f63 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,19 @@ +workspace: + path: static-hoster + base: /build + + +pipeline: + build: + image: docker:23-cli + privileged: true + commands: + - docker buildx build --no-cache -t dev.cat-enby.club/nikurasu/cobalt:latest -t dev.cat-enby.club/nikurasu/cobalt:$(date "+%Y-%m-%d") -f Dockerfile . + - docker login -u $USER -p $PASSWORD dev.cat-enby.club + - docker push dev.cat-enby.club/nikurasu/static-hoster:latest + - docker push dev.cat-enby.club/nikurasu/static-hoster:$(date "+%Y-%m-%d") + volumes: + - /var/run/docker.sock:/var/run/docker.sock + secrets: [ user, password ] + +branches: main