Skip to content

Commit

Permalink
feat: Build container containing roots
Browse files Browse the repository at this point in the history
  • Loading branch information
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs authored Nov 21, 2023
1 parent efdb63a commit 95a4ba5
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -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}}"
}
]
}
57 changes: 57 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 95a4ba5

Please sign in to comment.