-
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
3 changed files
with
180 additions
and
77 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 |
---|---|---|
|
@@ -21,16 +21,6 @@ jobs: | |
build-fleet: | ||
runs-on: runs-on,runner=8cpu-linux-x64,mem=16,run-id=${{ github.run_id }} | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
# - arm64 manifest | ||
#- tag-suffix: "-arm64" | ||
# platforms: linux/arm64 | ||
# - amd64 manifest | ||
- tag-suffix: "-amd64" | ||
platforms: linux/amd64 | ||
|
||
env: | ||
IS_HOTFIX: ${{ contains(github.ref, '-hotfix-ch-') }} | ||
REGISTRY: "${{ contains(github.ref, '-hotfix-ch-') && 'stgregistry.suse.com' || 'docker.io' }}" | ||
|
@@ -60,6 +50,9 @@ jobs: | |
- 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: | ||
|
@@ -68,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 | ||
|
@@ -84,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 | ||
|
@@ -94,44 +97,8 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_CURRENT_TAG: "v0.12.0-alpha.0" | ||
PRIME_REGISTRY: ${{ env.PRIME_REGISTRY }} | ||
|
||
- name: "Read Prime Vault Secrets" | ||
uses: rancher-eio/read-vault-secrets@main | ||
with: | ||
secrets: | | ||
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: Publish Fleet Prime Image | ||
uses: rancher/ecm-distro-tools/actions/publish-image@master | ||
with: | ||
image: fleet | ||
tag: ${{ github.ref_name }}${{ matrix.tag-suffix }} | ||
platforms: ${{ matrix.platforms }} | ||
make-target: push-image | ||
|
||
push-to-public: false | ||
|
||
prime-registry: ${{ env.PRIME_REGISTRY }} | ||
prime-repo: rancher | ||
prime-username: ${{ env.PRIME_REGISTRY_USERNAME }} | ||
prime-password: ${{ env.PRIME_REGISTRY_PASSWORD }} | ||
|
||
- name: Publish Fleet Agent Prime Image | ||
uses: rancher/ecm-distro-tools/actions/publish-image@master | ||
with: | ||
image: fleet-agent | ||
tag: ${{ github.ref_name }}${{ matrix.tag-suffix }} | ||
platforms: ${{ matrix.platforms }} | ||
make-target: push-image-agent | ||
|
||
push-to-public: false | ||
|
||
prime-registry: ${{ env.PRIME_REGISTRY }} | ||
prime-repo: rancher | ||
prime-username: ${{ env.PRIME_REGISTRY_USERNAME }} | ||
prime-password: ${{ env.PRIME_REGISTRY_PASSWORD }} | ||
- name: Upload charts to release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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