From 9f9b6882b0e9ebd4657e12d00157ef43cd1f8810 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Wed, 21 Aug 2024 23:30:11 +0530 Subject: [PATCH] Switch to forgejo ci Signed-off-by: baalajimaestro --- .forgejo/workflows/build-push.yml | 37 +++++++++++++++++++++++++++++++ .woodpecker/woodpecker.yml | 14 ------------ 2 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 .forgejo/workflows/build-push.yml delete mode 100644 .woodpecker/woodpecker.yml diff --git a/.forgejo/workflows/build-push.yml b/.forgejo/workflows/build-push.yml new file mode 100644 index 000000000..ec2d5cfd8 --- /dev/null +++ b/.forgejo/workflows/build-push.yml @@ -0,0 +1,37 @@ +name: Build & Push + +on: + push: + branches: + - master +jobs: + build-and-push: + runs-on: slave + container: + volumes: + - /var/run/docker.sock:/var/run/docker.sock + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Startup DIND + run: /dockerd-entrypoint.sh dockerd 2&> /dev/null & + shell: bash + + - name: Login to Docker Registry + uses: docker/login-action@v1 + with: + registry: git.ptr.moe + username: ${{ github.repository_owner }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build Image + run: make build-image + shell: bash + + - name: Push Image + run: | + docker tag traefik/traefik git.ptr.moe/baalajimaestro/traefik:latest + docker push git.ptr.moe/baalajimaestro/traefik:latest + shell: bash \ No newline at end of file diff --git a/.woodpecker/woodpecker.yml b/.woodpecker/woodpecker.yml deleted file mode 100644 index c0080c6a5..000000000 --- a/.woodpecker/woodpecker.yml +++ /dev/null @@ -1,14 +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 - - make build-image - - docker tag traefik/traefik git.ptr.moe/baalajimaestro/traefik:latest - - docker push git.ptr.moe/baalajimaestro/traefik:latest - secrets: [ docker_password ] - privileged: true \ No newline at end of file