Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 35 additions & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,42 +31,50 @@ jobs:
with:
fetch-depth: 0

- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Read Vault secrets
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD

- name: Log into Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Build and push system-agent image
run: make docker-buildx-push
- name: Publish Image
uses: rancher/ecm-distro-tools/actions/publish-image@master
env:
TAG: ${{ github.ref_name }}
ARCH: ${{ matrix.arch }}
GOOS: linux
TAG_SUFFIX: ${{ matrix.tag-suffix }}
COMMIT: ${{ github.sha }}
with:
image: "system-agent"
tag: ${{ github.ref_name }}
make-target: docker-buildx-push

public-repo: rancher
public-username: ${{ env.DOCKER_USERNAME }}
public-password: ${{ env.DOCKER_PASSWORD }}

- name: Build and push system-agent-suc image
run: make docker-buildx-push-suc
push-to-prime: false

- name: Publish Image
uses: rancher/ecm-distro-tools/actions/publish-image@master
env:
TAG: ${{ github.ref_name }}
ARCH: ${{ matrix.arch }}
GOOS: linux
TAG_SUFFIX: ${{ matrix.tag-suffix }}
COMMIT: ${{ github.sha }}
with:
image: "system-agent"
tag: ${{ github.ref_name }}
make-target: docker-buildx-push-suc

public-repo: rancher
public-username: ${{ env.DOCKER_USERNAME }}
public-password: ${{ env.DOCKER_PASSWORD }}

push-to-prime: false

merge:
runs-on: ubuntu-latest
Expand All @@ -83,16 +91,20 @@ jobs:
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD

- name: Log into Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Create and push multi-platform manifests
run: make docker-manifest
uses: rancher/ecm-distro-tools/actions/publish-image@master
env:
TAG: ${{ github.ref_name }}
with:
image: "system-agent"
tag: ${{ github.ref_name }}
make-target: docker-manifest

public-repo: rancher
public-username: ${{ env.DOCKER_USERNAME }}
public-password: ${{ env.DOCKER_PASSWORD }}

push-to-prime: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if needed, but should we publish the images in prime registry also?


github_release:
name: Create GitHub release
Expand Down
Loading