Skip to content

Merge pull request #257 from mallardduck/bump-kubectl #20

Merge pull request #257 from mallardduck/bump-kubectl

Merge pull request #257 from mallardduck/bump-kubectl #20

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write # Upload artefacts to release.
id-token: write # required by read-vault-secrets.
jobs:
publish-public:
runs-on: ubuntu-latest
steps:
- name: Load Secrets from Vault
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: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout code
uses: actions/checkout@v4
- name: Build and push all image variations
run: |
make image-push
TAG="${TAG}-amd64" TARGET_PLATFORMS=linux/amd64 make image-push
TAG="${TAG}-arm64" TARGET_PLATFORMS=linux/arm64 make image-push
TAG="${TAG}-s390x" TARGET_PLATFORMS=linux/s390x make image-push
env:
TAG: ${{ github.ref_name }}
REPO: ${{ vars.PUBLIC_REGISTRY }}/${{ vars.PUBLIC_REGISTRY_REPO }}