From 8602df0060072b50b8a3f753b8a8565b1e98dc16 Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Fri, 25 Oct 2024 00:56:41 +0200 Subject: [PATCH] chore: upgrade to ci v2 --- .github/workflows/main.yaml | 23 ++++++++++++++++++----- renovate.json | 5 ++++- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e64a52a..a5b9f88 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -6,15 +6,21 @@ on: - master env: - REGISTRY_NAME: container.localdomain:5000 + REGISTRY_NAME: container.localdomain jobs: build: + if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true" + runs-on: docker container: image: catthehacker/ubuntu:act-22.04 steps: - - uses: RouxAntoine/checkout@v4.1.8 + - name: Checkout repository + uses: https://antoine-roux.tk/projects/actions/checkout@v4.1.8 + with: + fetch-depth: 0 + fetch-tags: false - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -24,12 +30,10 @@ jobs: with: config-inline: | [registry."${{ env.REGISTRY_NAME }}"] - http = true + insecure = true - name: Build and push uses: docker/build-push-action@v6 - env: - ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 with: context: . push: true @@ -37,3 +41,12 @@ jobs: platforms: | linux/amd64 linux/arm64 + + - name: Auto generate changelog + uses: https://antoine-roux.tk/projects/actions/auto-changie@v1.0.1 + + - name: Push changelog + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "${{ vars.SKIP_CI_PREFIX }} Push updated changelog" + file_pattern: "\\.changes/* CHANGELOG.md" diff --git a/renovate.json b/renovate.json index 02ae055..e5c42bb 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "dependencyDashboard": true + "dependencyDashboard": true, + "extends": [ + "local>config/renovate-config" + ] }