Skip to content

feat: replace domains by auth config #4

feat: replace domains by auth config

feat: replace domains by auth config #4

Workflow file for this run

name: 🏗️ Update CRDs
on:
workflow_dispatch:
tag:
description: 'Execute scenario on specified tag value'
required: true
type: string
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GIT_TAG: ${{ inputs.tag || github.ref_name }}
jobs:
update-traefik-hub-helm-chart:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
repository: traefik/hub-crds
path: ${{ github.workspace }}/hub-crds
ref: ${{ env.GIT_TAG }}
- name: checkout traefik-hub-helm-chart repo
uses: actions/checkout@v4
with:
repository: traefik/traefik-hub-helm-chart
ref: main
token: ${{ secrets.GH_TOKEN }}
path: ${{ github.workspace }}/traefik-hub-helm-chart
- name: copy CRDs
run: rsync -crv --delete --exclude='kustomization.yaml' --exclude='traefik.io_*.yaml' --exclude='traefik.containo.us_*.yaml' --exclude='*.go' ${{ github.workspace }}/hub-crds/pkg/apis/hub/v1alpha1/crd/ ${{ github.workspace }}/traefik-hub-helm-chart/traefik-hub/crds/
- name: create PR
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_TOKEN }}
path: traefik-hub-helm-chart
commit-message: "chore: update CRDs to ${{ env.GIT_TAG }}"
committer: "Traefiker <[email protected]>"
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
signoff: false
branch: update-crds-${{ env.GIT_TAG }}
delete-branch: true
title: 'chore: update CRDs to ${{ env.GIT_TAG }}'
labels: kind/enhancement,status/2-needs-review
body: |
This PR was automatically created by ${{ github.workflow }} workflow on run [#${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
This was triggered by commit [${{ github.ref }}](https://github.com/${{ github.repository }}/commits/${{ github.sha }}) on [${{ github.repository }}](https://github.com/${{ github.repository }}).
update-traefik-hub:
uses: ./.github/workflows/template-update-crds-go-project.yaml
with:
TARGET_REPO: traefik/traefik-hub
TARGET_BRANCH: main
CRDS_VERSION: ${{ inputs.tag || github.ref_name }}
secrets: inherit
update-hub-install:
uses: ./.github/workflows/template-update-crds-go-project.yaml
with:
TARGET_REPO: traefik/hub-install
TARGET_BRANCH: master
CRDS_VERSION: ${{ inputs.tag || github.ref_name }}
secrets: inherit
update-hub-static-analyzer:
uses: ./.github/workflows/template-update-crds-go-project.yaml
with:
TARGET_REPO: traefik/hub-static-analyzer
TARGET_BRANCH: main
CRDS_VERSION: ${{ inputs.tag || github.ref_name }}
secrets: inherit