From 03493aac343e19958c501065466430fafe0e05f1 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 17 Mar 2024 11:19:42 +0530 Subject: [PATCH] Switch to woodpecker ci Signed-off-by: baalajimaestro --- .gitlab-ci.yml | 7 ------- .woodpecker/woodpecker.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) delete mode 100644 .gitlab-ci.yml create mode 100644 .woodpecker/woodpecker.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index aeab304..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,7 +0,0 @@ -docker-build: - stage: build - before_script: - - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin - script: - - docker build . -t registry.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest - - docker push registry.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest \ No newline at end of file diff --git a/.woodpecker/woodpecker.yaml b/.woodpecker/woodpecker.yaml new file mode 100644 index 0000000..dcd2cc0 --- /dev/null +++ b/.woodpecker/woodpecker.yaml @@ -0,0 +1,13 @@ +when: + - event: push + +steps: + - name: Build & Push + image: git.baalajimaestro.me/baalajimaestro/build-runner + commands: + - /dockerd-entrypoint.sh dockerd 2&> /dev/null & + - echo $DOCKER_PASSWORD | docker login git.baalajimaestro.me --username ${CI_REPO_OWNER} --password-stdin + - docker build . -t git.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest + - docker push git.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest + secrets: [ docker_password ] + privileged: true \ No newline at end of file