Merge pull request #88 from Lerentis/feature/tt/skaffold-tests

fix release pipeline
This commit is contained in:
Tobias Trabelsi 2024-06-29 23:33:27 +02:00 committed by GitHub
commit d8dc1a2de9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 47 additions and 7 deletions

View File

@ -77,7 +77,7 @@ jobs:
uses: WyriHaximus/github-action-get-previous-tag@v1 uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Download SBOM from github action - name: Download SBOM from github action
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: ${{ env.ANCHORE_SBOM_ACTION_PRIOR_ARTIFACT }} name: ${{ env.ANCHORE_SBOM_ACTION_PRIOR_ARTIFACT }}

View File

@ -24,7 +24,7 @@ spec:
annotations: annotations:
custom.annotation: is-used custom.annotation: is-used
--- ---
apiVersion: "lerentis.uploadfilter24.eu/v1beta6" apiVersion: "lerentis.uploadfilter24.eu/v1beta7"
kind: BitwardenSecret kind: BitwardenSecret
metadata: metadata:
name: test-scope name: test-scope

View File

@ -1,5 +1,5 @@
--- ---
apiVersion: "lerentis.uploadfilter24.eu/v1beta6" apiVersion: "lerentis.uploadfilter24.eu/v1beta7"
kind: RegistryCredential kind: RegistryCredential
metadata: metadata:
name: test name: test

View File

@ -1,5 +1,5 @@
--- ---
apiVersion: "lerentis.uploadfilter24.eu/v1beta6" apiVersion: "lerentis.uploadfilter24.eu/v1beta7"
kind: BitwardenTemplate kind: BitwardenTemplate
metadata: metadata:
name: test name: test

View File

@ -1,8 +1,10 @@
apiVersion: skaffold/v4beta5 apiVersion: skaffold/v4beta9
kind: Config kind: Config
metadata: metadata:
name: bitwarden-crd-operator name: bitwarden-crd-operator
build: build:
tagPolicy:
sha256: {}
artifacts: artifacts:
- image: ghcr.io/lerentis/bitwarden-crd-operator - image: ghcr.io/lerentis/bitwarden-crd-operator
docker: docker:
@ -13,5 +15,43 @@ deploy:
- name: bitwarden-crd-operator - name: bitwarden-crd-operator
chartPath: charts/bitwarden-crd-operator chartPath: charts/bitwarden-crd-operator
valuesFiles: valuesFiles:
- env/values.yaml - ./charts/bitwarden-crd-operator/myvalues.yaml
version: v0.13.0 setValueTemplates:
image.repository: "{{.IMAGE_REPO_ghcr_io_lerentis_bitwarden_crd_operator}}"
image.tag: "{{.IMAGE_TAG_ghcr_io_lerentis_bitwarden_crd_operator}}@{{.IMAGE_DIGEST_ghcr_io_lerentis_bitwarden_crd_operator}}"
hooks:
after:
- host:
command:
- kubectl
- apply
- -f
- ./example*.yaml
- host:
command:
- sleep
- '5'
- host:
command:
- kubectl
- get
- secret
- test-regcred
- host:
command:
- kubectl
- get
- secret
- test-scope
- host:
command:
- kubectl
- get
- secret
- test-secret
- host:
command:
- kubectl
- get
- secret
- test-template