fix responsetype value
All checks were successful
Build and Publish / build-release (push) Successful in 3m41s
All checks were successful
Build and Publish / build-release (push) Successful in 3m41s
This commit is contained in:
@@ -8,39 +8,26 @@ env:
|
|||||||
IMAGE_NAME: ${{ github.event.repository.name }}
|
IMAGE_NAME: ${{ github.event.repository.name }}
|
||||||
jobs:
|
jobs:
|
||||||
build-release:
|
build-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: DeterminateSystems/determinate-nix-action@v3
|
|
||||||
|
|
||||||
- uses: DeterminateSystems/flake-checker-action@main
|
|
||||||
with:
|
|
||||||
flake-lock-path: ./build/flake.lock
|
|
||||||
|
|
||||||
- name: Setup Attic cache
|
|
||||||
uses: ryanccn/attic-action@v0
|
|
||||||
with:
|
|
||||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
|
||||||
cache: ${{ secrets.ATTIC_CACHE }}
|
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build Docker Image via Nix Flake
|
- name: Build Docker Image via Nix Flake
|
||||||
run: |
|
run: |
|
||||||
nix build ./build#dockerImage --print-build-logs
|
nix build ./build#dockerImage --print-build-logs
|
||||||
docker load < result
|
docker load < result
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ github.server_url }}
|
registry: ${{ github.server_url }}
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
password: ${{ secrets.CI_PASSWORD }}
|
password: ${{ secrets.CI_PASSWORD }}
|
||||||
|
|
||||||
- name: Tag and Push Docker Image
|
- name: Tag and Push Docker Image
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ github.run_number }}
|
VERSION=${{ github.run_number }}
|
||||||
@@ -57,23 +44,25 @@ jobs:
|
|||||||
docker tag $SOURCE_IMAGE $TARGET_IMAGE:latest
|
docker tag $SOURCE_IMAGE $TARGET_IMAGE:latest
|
||||||
docker push $TARGET_IMAGE:$VERSION
|
docker push $TARGET_IMAGE:$VERSION
|
||||||
docker push $TARGET_IMAGE:latest
|
docker push $TARGET_IMAGE:latest
|
||||||
|
|
||||||
- name: Setup Helm
|
- name: Setup Helm
|
||||||
uses: azure/setup-helm@v4
|
uses: azure/setup-helm@v4
|
||||||
with:
|
with:
|
||||||
version: v3.14.0
|
version: v3.14.0
|
||||||
|
|
||||||
- name: Package Helm Chart
|
- name: Package Helm Chart
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ github.run_number }}
|
VERSION=${{ github.run_number }}
|
||||||
|
helm repo add bjw-s https://bjw-s-labs.github.io/helm-charts
|
||||||
|
helm dependency build ops/chart
|
||||||
helm package ops/chart --version $VERSION --app-version $VERSION
|
helm package ops/chart --version $VERSION --app-version $VERSION
|
||||||
|
|
||||||
- name: Push Helm Chart to Gitea Registry
|
- name: Push Helm Chart to Gitea Registry
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ github.run_number }}
|
VERSION=${{ github.run_number }}
|
||||||
CHART_FILE=${{ env.CHART_NAME }}-${VERSION}.tgz
|
CHART_FILE=${{ env.CHART_NAME }}-${VERSION}.tgz
|
||||||
|
|
||||||
curl -f --user "${{ secrets.CI_USER }}:${{ secrets.CI_PASSWORD }}" \
|
curl -f --user "${{ secrets.CI_USER }}:${{ secrets.CI_PASSWORD }}" \
|
||||||
-X POST \
|
-X POST \
|
||||||
--upload-file ./$CHART_FILE \
|
--upload-file ./$CHART_FILE \
|
||||||
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/helm/api/charts"
|
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/helm/api/charts"
|
||||||
@@ -110,7 +110,7 @@ func (wr *wrappedOIDCAppReconciler) Reconcile(ctx context.Context, ztdClient *cl
|
|||||||
}
|
}
|
||||||
responseTypes := []application.OIDCResponseType{}
|
responseTypes := []application.OIDCResponseType{}
|
||||||
for _, r := range wr.OIDCApp.Spec.ResponseTypes {
|
for _, r := range wr.OIDCApp.Spec.ResponseTypes {
|
||||||
responseTypes = append(responseTypes, application.OIDCResponseType(application.OIDCApplicationType_value[string(r)]))
|
responseTypes = append(responseTypes, application.OIDCResponseType(application.OIDCResponseType_value[string(r)]))
|
||||||
}
|
}
|
||||||
grantTypes := []application.OIDCGrantType{}
|
grantTypes := []application.OIDCGrantType{}
|
||||||
for _, r := range wr.OIDCApp.Spec.GrantTypes {
|
for _, r := range wr.OIDCApp.Spec.GrantTypes {
|
||||||
|
|||||||
Reference in New Issue
Block a user