Skip to content

Karmada v1.12.0-alpha.1 release #90

Karmada v1.12.0-alpha.1 release

Karmada v1.12.0-alpha.1 release #90

name: released image to SWR
on:
release:
types:
- published
permissions:
contents: read
jobs:
release-image:
name: release images
# prevent job running from forked repository, otherwise
# 1. running on the forked repository would fail as missing necessary secret.
# 2. running on the forked repository would use unnecessary GitHub Action time.
if: ${{ github.repository == 'karmada-io/karmada' }}
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: build images
env:
REGISTRY: ${{secrets.SWR_REGISTRY}}
REGISTRY_USER_NAME: ${{secrets.SWR_REGISTRY_USER_NAME}}
REGISTRY_PASSWORD: ${{secrets.SWR_REGISTRY_PASSWORD}}
REGISTRY_SERVER_ADDRESS: ${{secrets.SWR_REGISTRY_SERVER_ADDRESS}}
VERSION: ${{ github.ref_name }}
run: make upload-images