diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..2512ad8 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,41 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + ":disableRateLimiting", + ":dependencyDashboard", + ":semanticCommits", + ":separatePatchReleases", + ":enablePreCommit" + ], + "rebaseWhen": "conflicted", + "timezone": "Etc/UTC", + "dependencyDashboardTitle": "Renovate Dashboard", + "dependencyDashboardLabels": ["renovate"], + "commitMessageTopic": "{{depName}}", + "commitMessageExtra": "to {{newVersion}}", + "commitMessageSuffix": "", + "packageRules": [ + { + "matchUpdateTypes": ["major"], + "semanticCommitType": "feat", + "commitMessagePrefix": "{{semanticCommitType}}({{semanticCommitScope}})!: " + }, + { + "matchUpdateTypes": ["minor"], + "semanticCommitType": "feat" + }, + { + "matchUpdateTypes": ["patch"], + "semanticCommitType": "fix" + }, + { + "matchManagers": ["github-actions"], + "semanticCommitType": "ci" + }, + { + "matchDatasources": ["docker"], + "commitMessageTopic": "Docker image {{depName}}" + } + ] +} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..a39a89a --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,57 @@ +--- +name: Release + +on: + workflow_dispatch: + push: + branches: + - "master" + tags: + - "v*" + +env: + REGISTRY: ghcr.io/sectigo/ctlog-acceptedroots + +permissions: + packages: write + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: | + ${{ env.REGISTRY }} + tags: | + type=ref,event=branch + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and Push ctfe + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64,linux/arm/v7 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c097f36 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM busybox:1.36 +USER nobody + +COPY crt/* /ctlog-roots/crt/ +COPY pem/* /ctlog-roots/pem/ +COPY tsv/* /ctlog-roots/tsv/