-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Build container containing roots
- Loading branch information
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
authored
Nov 21, 2023
1 parent
efdb63a
commit 95a4ba5
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |