diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml new file mode 100644 index 0000000..2bbe4af --- /dev/null +++ b/.forgejo/workflows/docker.yml @@ -0,0 +1,35 @@ +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: + platforms: linux/amd64,linux/arm64/v8 + push: true + tags: | + spcodes/cadvisor:v0.47.2 + spcodes/cadvisor:latest + cr.sp-codes.de/sp-codes/cadvisor:v0.47.2 + cr.sp-codes.de/sp-codes/cadvisor:latest diff --git a/.woodpecker.yml b/.woodpecker.yml.disabled similarity index 100% rename from .woodpecker.yml rename to .woodpecker.yml.disabled diff --git a/renovate.json b/renovate.json index 99c2314..a1a0bd0 100644 --- a/renovate.json +++ b/renovate.json @@ -11,11 +11,11 @@ { "fileMatch": [ "^Dockerfile$", - "^.woodpecker.yml$" + ".forgejo/workflows/docker.yml$" ], "matchStrings": [ "\\s+ENV\\s*CADVISOR_VERSION=\"(?.*?)\"\\s+", - "\\s+repo:\\s*\\S*\\/cadvisor\\s+tags:[-\\s]+(?.*?)\\s+" + "cadvisor:(?v\\S+)" ], "versioningTemplate": "loose", "depNameTemplate": "google/cadvisor",