forked from kubeedge/kubeedge
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (82 loc) · 2.36 KB
/
release.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: build release, release image to DockerHub
on:
release:
types:
- published
env:
CONTAINER_RUN_OPTIONS: " "
jobs:
release-assests:
name: release kubeedge components
runs-on: ubuntu-18.04
strategy:
matrix:
target:
- kubeedge
- edgesite
- keadm
os:
- linux
arch:
- amd64
- arm64
- arm
ARM_VERSION:
- GOARM7
- GOARM8
- ""
steps:
- name: checkout code
uses: actions/checkout@v2
with:
# fetch-depth:
# 0 indicates all history for all branches and tags.
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: Making and packaging
run: |
docker pull kubeedge/build-tools
make release ARM_VERSION=${{ matrix.ARM_VERSION }}
- name: Uploading assets...
if: ${{ !env.ACT }}
uses: softprops/action-gh-release@v1
with:
files: |
_output/release/${{ github.ref_name }}/${{ matrix.target }}-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz
_output/release/${{ github.ref_name }}/checksum_${{ matrix.target }}-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz.txt
publish-image-to-dockerhub:
name: publish to DockerHub
strategy:
matrix:
target:
- cloudcore
- admission
- edgesite-agent
- edgesite-server
- csidriver
- iptablesmanager
- edgemark
- installation-package
- controllermanager
runs-on: ubuntu-18.04
steps:
- name: checkout code
uses: actions/checkout@v2
with:
# fetch-depth:
# 0 indicates all history for all branches and tags.
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: install QEMU
uses: docker/setup-qemu-action@v1
- name: install Buildx
uses: docker/setup-buildx-action@v1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and publish images
env:
IMAGE_REPO_NAME: kubeedge
run: make crossbuildimage WHAT=${{ matrix.target }}