Skip to content

Commit

Permalink
Prepare V1 Release of KCert (#24)
Browse files Browse the repository at this point in the history
* Start working towards V1

* Simplify configuration by using environment variables and removing direct access of K8s secret

* Tighten up the permissions given to the service

* Try a little fix

* Minor bug fix

* Remove dangling save button

* Fix double underscore

* Continue work towards managing ingresses

* Handle create/update of certs via ingresses, and retire the old UI based approach

* Update favicon, finish testing renewal flow

* Split out renewal and ingress watching services

* Another run through of cleanup and simplification

* Remove unused GH actions

* Fix the registry names

* Run code cleanup

* Revampt the documentation

* Try conditional for docker build

* Another refactor for action
  • Loading branch information
nabsul authored Feb 24, 2022
1 parent 6248f72 commit 232eea3
Show file tree
Hide file tree
Showing 42 changed files with 827 additions and 904 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.git
.github
.vs
bin
obj
*.user
net5.0
kubeconfig
64 changes: 44 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ name: Build KCert
on:
push:
branches:
- 'main'
- 'main'
tags:
- 'v*'
- 'v*'
pull_request:
branches:
- 'main'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
- 'main'

jobs:
build-and-push-image:
Expand All @@ -23,28 +20,55 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
- name: Extract metadata (tags, labels) for GHCR
id: meta_ghcr
uses: docker/metadata-action@v3
with:
registry: ${{ env.REGISTRY }}
images: ghcr.io/nabsul/kcert
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=sha
- name: Log in to the GHCR registry
uses: docker/login-action@v1
with:
registry: ghcr.io/nabsul/kcert
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push GHCR image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta_ghcr.outputs.tags }}
labels: ${{ steps.meta_ghcr.outputs.labels }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
if: startsWith(github.ref, 'refs/tags/v')
id: meta_docker
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: nabsul/kcert
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=sha
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
- name: Login to Docker Hub
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
- name: Build and push Docker Hub image
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta_docker.outputs.tags }}
labels: ${{ steps.meta_docker.outputs.labels }}
23 changes: 0 additions & 23 deletions .github/workflows/main.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/pr.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
bin
obj
*.user
net5.0
kubeconfig
appsettings.local.json
67 changes: 0 additions & 67 deletions Controllers/CertificateController.cs

This file was deleted.

34 changes: 0 additions & 34 deletions Controllers/ChallengeController.cs

This file was deleted.

83 changes: 0 additions & 83 deletions Controllers/ConfigurationController.cs

This file was deleted.

Loading

0 comments on commit 232eea3

Please sign in to comment.