forked from karmada-io/karmada
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.35 KB
/
dockerhub-released-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: released image to DockerHub
on:
release:
types:
- published
jobs:
publish-image-to-dockerhub:
name: publish to DockerHub
strategy:
matrix:
target:
- karmada-controller-manager
- karmada-scheduler
- karmada-descheduler
- karmada-webhook
- karmada-agent
- karmada-scheduler-estimator
- karmada-interpreter-webhook-example
- karmada-aggregated-apiserver
- karmada-search
runs-on: ubuntu-20.04
steps:
- name: checkout code
uses: actions/checkout@v3
with:
# fetch-depth:
# 0 indicates all history for all branches and tags.
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.5
- name: install QEMU
uses: docker/setup-qemu-action@v2
- name: install Buildx
uses: docker/setup-buildx-action@v2
- name: login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and publish images
env:
REGISTRY: karmada
VERSION: ${{ github.ref_name }}
run: make mp-image-${{ matrix.target }}