From f846594acf934b938deeb3ea736dacfdba3a701d Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 6 Dec 2024 19:43:58 +0100 Subject: [PATCH] CI --- .forgejo/workflows/build.yml | 32 -------------------------------- .woodpecker/build.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 32 deletions(-) delete mode 100644 .forgejo/workflows/build.yml create mode 100644 .woodpecker/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml deleted file mode 100644 index 73dfb08..0000000 --- a/.forgejo/workflows/build.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: build - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: host - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - registry: git.hydrar.de - username: ${{ secrets.registry_user }} - password: ${{ secrets.registry_password }} - - - name: Build and push Docker image - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - tags: git.hydrar.de/hydra/flutter:latest diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml new file mode 100644 index 0000000..7f01461 --- /dev/null +++ b/.woodpecker/build.yml @@ -0,0 +1,18 @@ +when: + - event: push + branch: main + +steps: + - name: build + image: woodpeckerci/plugin-docker-buildx + settings: + platforms: linux/amd64 + repo: git.hydrar.de/hydra/flutter + registry: git.hydrar.de + tag: latest + username: jmarya + password: + from_secret: registry_token + when: + event: cron + cron: "rebuild"