From b6d7f15c3cd561b20df5611ddf8867a69356cedc Mon Sep 17 00:00:00 2001 From: Samuel Philipp Date: Thu, 7 Dec 2023 22:45:43 +0100 Subject: [PATCH] migrated to workflows --- .forgejo/workflows/docker.yml | 32 ++++++++++++++++++++++++++ .woodpecker.yml => .woodpecker.yml.old | 0 Dockerfile | 2 +- renovate.json | 16 +++++++++++-- 4 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 .forgejo/workflows/docker.yml rename .woodpecker.yml => .woodpecker.yml.old (100%) diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml new file mode 100644 index 0000000..87dfc11 --- /dev/null +++ b/.forgejo/workflows/docker.yml @@ -0,0 +1,32 @@ +name: Build and Push Docker image + +on: + push: + branches: + - main + +jobs: + docker: + name: Build and Push Docker image + runs-on: docker + container: + image: ghcr.io/catthehacker/ubuntu:act-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to cr.sp-codes.de + uses: docker/login-action@v2 + with: + registry: cr.sp-codes.de + username: ${{ secrets.CR_USERNAME }} + password: ${{ secrets.CR_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v4 + with: + push: true + tags: | + samuelph/connectivity-check:latest + cr.sp-codes.de/samuel-p/connectivity-check:latest diff --git a/.woodpecker.yml b/.woodpecker.yml.old similarity index 100% rename from .woodpecker.yml rename to .woodpecker.yml.old diff --git a/Dockerfile b/Dockerfile index 886ff4b..87155a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM nginx:1.21.3-alpine +FROM nginx:1.21.3-alpine@sha256:af466e4f12e3abe41fcfb59ca0573a3a5c640573b389d5287207a49d1324abd8 COPY nginx.conf /etc/nginx/nginx.conf diff --git a/renovate.json b/renovate.json index 7e23eca..6c72aec 100644 --- a/renovate.json +++ b/renovate.json @@ -1,9 +1,21 @@ { + "$schema": "https://docs.renovatebot.com/renovate-schema.json", "assignees": [ "samuel-p" ], "baseBranches": [ - "master" + "main" ], - "rangeStrategy": "bump" + "rangeStrategy": "bump", + "rebaseWhen": "behind-base-branch", + "automergeType": "branch", + "ignoreTests": true, + "packageRules": [ + { + "datasources": [ + "docker" + ], + "automerge": true + } + ] }