b0d8a54b83
CI / image check (pull_request) Successful in 6s
CI / install-dependencies (pull_request) Successful in 1m33s
CI / check lint (pull_request) Successful in 23s
CI / test (pull_request) Successful in 43s
CI / check format (pull_request) Successful in 1m29s
CD / Create tag (pull_request) Successful in 12s
CD / build_and_push_image (pull_request) Successful in 1m16s
CI / build check (pull_request) Successful in 12m20s
CD / deploy (pull_request) Failing after 11m45s
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
name: CD
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "**/*.go"
|
|
- "Dockerfile"
|
|
- "Makefile"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DOCKER_REGISTRY: gitea.t000-n.de
|
|
|
|
jobs:
|
|
create_tag:
|
|
name: Create tag
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
tag: ${{ steps.tag.outputs.new-tag }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@ef0c23189db33220a73022d8c29a27709d0df440 # 0.1.32
|
|
id: tag
|
|
with:
|
|
token: ${{ secrets.GITEA_TOKEN }}
|
|
prerelease: ${{ github.event_name == 'workflow_dispatch' }}
|
|
- run: |
|
|
git tag ${{ steps.tag.outputs.new-tag }}
|
|
git push origin ${{ steps.tag.outputs.new-tag }}
|
|
- name: Set output
|
|
run: |
|
|
echo "tag=${{ steps.tag.outputs.new-tag }}" >> $GITHUB_OUTPUT
|
|
|
|
build_and_push_image:
|
|
needs: create_tag
|
|
uses: https://gitea.t000-n.de/t.behrendt/gitea-workflows/.gitea/workflows/build-container.yaml@0.1.1
|
|
with:
|
|
registry: gitea.t000-n.de/t.behrendt
|
|
registry-user: ${{ secrets.REGISTRY_USER }}
|
|
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
repo-name: authentik-kubernetes-operator
|
|
tag: ${{ needs.create_tag.outputs.tag }}
|
|
|
|
deploy:
|
|
needs: build_and_push_image
|
|
uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/workflows/deploy.yaml@1.1.0
|
|
with:
|
|
k8s_dir: ./k8s
|
|
skip_helm_deployment: true
|
|
skip_shared_secrets_deployment: true
|
|
secrets: inherit
|