From b4657187287dd7498495a9a036b0a925b327ae6e Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Wed, 4 Sep 2024 15:05:22 +0530 Subject: [PATCH] Revert "Switch to woodpecker ci" This reverts commit 0a0900477ae9674abbb664d3d3182803c04ec043. Signed-off-by: baalajimaestro --- .forgejo/workflows/build-push.yml | 29 +++++++++++++++++++++++++++++ .woodpecker/woodpecker.yaml | 13 ------------- 2 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 .forgejo/workflows/build-push.yml delete mode 100644 .woodpecker/woodpecker.yaml diff --git a/.forgejo/workflows/build-push.yml b/.forgejo/workflows/build-push.yml new file mode 100644 index 0000000..ec5a339 --- /dev/null +++ b/.forgejo/workflows/build-push.yml @@ -0,0 +1,29 @@ +on: + push: + +jobs: + Building: + runs-on: slave + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Startup DIND + run: /dockerd-entrypoint.sh dockerd & + shell: bash + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: git.ptr.moe + 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.ptr.moe/baalajimaestro/obsolute-paste:latest + diff --git a/.woodpecker/woodpecker.yaml b/.woodpecker/woodpecker.yaml deleted file mode 100644 index 66fe10c..0000000 --- a/.woodpecker/woodpecker.yaml +++ /dev/null @@ -1,13 +0,0 @@ -when: - - event: push - -steps: - - name: Build & Push - image: git.ptr.moe/baalajimaestro/build-runner - commands: - - /dockerd-entrypoint.sh dockerd 2&> /dev/null & - - echo $DOCKER_PASSWORD | docker login git.ptr.moe --username ${CI_REPO_OWNER} --password-stdin - - docker build . -t git.ptr.moe/baalajimaestro/obsolute-paste:latest - - docker push git.ptr.moe/baalajimaestro/obsolute-paste:latest - secrets: [ docker_password ] - privileged: true