From 0a0900477ae9674abbb664d3d3182803c04ec043 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Wed, 28 Feb 2024 21:07:32 +0530 Subject: [PATCH] Switch to woodpecker ci Signed-off-by: baalajimaestro --- .gitea/workflows/build-push.yml | 25 ------------------------- .woodpecker/woodpecker.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 25 deletions(-) delete mode 100644 .gitea/workflows/build-push.yml create mode 100644 .woodpecker/woodpecker.yaml diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml deleted file mode 100644 index fa3b367..0000000 --- a/.gitea/workflows/build-push.yml +++ /dev/null @@ -1,25 +0,0 @@ -on: - push: - -jobs: - Building: - runs-on: slave - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - registry: git.baalajimaestro.me - username: ${{ gitea.repository_owner }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build & Push - uses: docker/build-push-action@master - with: - push: true - context: . - platforms: linux/amd64 - tags: git.baalajimaestro.me/baalajimaestro/obsolute-paste:latest - diff --git a/.woodpecker/woodpecker.yaml b/.woodpecker/woodpecker.yaml new file mode 100644 index 0000000..a6a9926 --- /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/obsolute-paste:latest + - docker push git.baalajimaestro.me/baalajimaestro/obsolute-paste:latest + secrets: [ docker_password ] + privileged: true