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