-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
144 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,43 +44,15 @@ jobs: | |
secrets: | | ||
secret/data/github/repo/${{ github.repository }}/fossa/credential token | FOSSA_API_KEY | ||
- name: Run FOSSA scan | ||
uses: fossas/[email protected] | ||
with: | ||
api-key: ${{ env.FOSSA_API_KEY }} | ||
|
||
- name: Run FOSSA tests | ||
uses: fossas/[email protected] | ||
with: | ||
api-key: ${{ env.FOSSA_API_KEY }} | ||
run-tests: false | ||
|
||
- name: Check for code changes | ||
continue-on-error: ${{ contains(github.ref, 'rc') }} | ||
run: | | ||
./.github/scripts/check-for-auto-generated-changes.sh | ||
go mod verify | ||
- name: Run unit tests | ||
continue-on-error: ${{ contains(github.ref, 'rc') }} | ||
run: go test -cover -tags=test $(go list ./... | grep -v -e /e2e -e /integrationtests -e /benchmarks) | ||
|
||
- name: Install Ginkgo CLI | ||
run: go install github.com/onsi/ginkgo/v2/ginkgo | ||
|
||
- name: Run integration tests | ||
continue-on-error: ${{ contains(github.ref, 'rc') }} | ||
env: | ||
SETUP_ENVTEST_VER: v0.0.0-20240115093953-9e6e3b144a69 | ||
ENVTEST_K8S_VERSION: 1.28 | ||
run: ./.github/scripts/run-integration-tests.sh | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
|
||
- name: "Read Vault Secrets" | ||
uses: rancher-eio/read-vault-secrets@main | ||
with: | ||
|
@@ -89,6 +61,9 @@ jobs: | |
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD ; | ||
secret/data/github/repo/${{ github.repository }}/rancher-prime-stg-registry/credentials username | STAGE_REGISTRY_USERNAME ; | ||
secret/data/github/repo/${{ github.repository }}/rancher-prime-stg-registry/credentials password | STAGE_REGISTRY_PASSWORD ; | ||
secret/data/github/repo/${{ github.repository}}/rancher-prime-registry/credentials username | PRIME_REGISTRY_USERNAME ; | ||
secret/data/github/repo/${{ github.repository}}/rancher-prime-registry/credentials password | PRIME_REGISTRY_PASSWORD ; | ||
secret/data/github/repo/${{ github.repository }}/rancher-prime-registry/credentials registry | PRIME_REGISTRY; | ||
- name: Log into Docker Container registry | ||
uses: docker/login-action@v3 | ||
|
@@ -105,6 +80,13 @@ jobs: | |
password: ${{ env.STAGE_REGISTRY_PASSWORD }} | ||
registry: ${{ env.REGISTRY }} | ||
|
||
- name: Log into Prime registry | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ env.PRIME_REGISTRY_USERNAME }} | ||
password: ${{ env.PRIME_REGISTRY_PASSWORD }} | ||
registry: ${{ env.PRIME_REGISTRY }} | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v6 | ||
id: goreleaser | ||
|
@@ -114,7 +96,8 @@ jobs: | |
args: release --clean --verbose | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_CURRENT_TAG: ${{ github.ref_name }} | ||
GORELEASER_CURRENT_TAG: "v0.12.0-alpha.0" | ||
PRIME_REGISTRY: ${{ env.PRIME_REGISTRY }} | ||
|
||
- name: Upload charts to release | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters