Skip to content

Commit 7b4f3d5

Browse files
update dockerfiles and workflows
Signed-off-by: stoneshi-yunify <[email protected]>
1 parent 36fb096 commit 7b4f3d5

File tree

5 files changed

+5
-344
lines changed

5 files changed

+5
-344
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ runs:
5050
uses: docker/[email protected]
5151
with:
5252
images: |
53-
kubespheredev/${{ inputs.image-name }}
53+
kubesphere/${{ inputs.image-name }}
5454
tags: |
5555
type=ref,event=branch,suffix=${{ inputs.tag-suffix }}
5656
type=ref,event=pr,suffix=${{ inputs.tag-suffix }}

.github/workflows/build-podman.yaml

Lines changed: 1 addition & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
BuildBase:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Build base agent
@@ -23,168 +23,3 @@ jobs:
2323
platforms: linux/amd64,linux/arm64
2424
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
2525
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
26-
27-
BuildGo:
28-
needs: BuildBase
29-
runs-on: ubuntu-20.04
30-
steps:
31-
- uses: actions/checkout@v2
32-
- name: Build Go agent
33-
uses: ./.github/actions/build
34-
with:
35-
context: go
36-
dockerfile: go/podman/Dockerfile
37-
image-name: builder-go
38-
tag-suffix: -podman
39-
platforms: linux/amd64,linux/arm64
40-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
41-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
42-
build-args: "GOLANG_VERSION=1.12.10"
43-
BuildGo16:
44-
needs: BuildBase
45-
runs-on: ubuntu-20.04
46-
steps:
47-
- uses: actions/checkout@v2
48-
- name: Build Go 1.16 agent
49-
uses: ./.github/actions/build
50-
with:
51-
context: go
52-
dockerfile: go/podman/Dockerfile
53-
image-name: builder-go
54-
tag-suffix: -1.16-podman
55-
platforms: linux/amd64,linux/arm64
56-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
57-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
58-
build-args: "GOLANG_VERSION=1.16.8"
59-
BuildGo17:
60-
needs: BuildBase
61-
runs-on: ubuntu-20.04
62-
steps:
63-
- uses: actions/checkout@v2
64-
- name: Build Go 1.17 agent
65-
uses: ./.github/actions/build
66-
with:
67-
context: go
68-
dockerfile: go/podman/Dockerfile
69-
image-name: builder-go
70-
tag-suffix: -1.17-podman
71-
platforms: linux/amd64,linux/arm64
72-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
73-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
74-
build-args: "GOLANG_VERSION=1.17.8"
75-
BuildGo18:
76-
needs: BuildBase
77-
runs-on: ubuntu-20.04
78-
steps:
79-
- uses: actions/checkout@v2
80-
- name: Build Go 1.18 agent
81-
uses: ./.github/actions/build
82-
with:
83-
context: go
84-
dockerfile: go/podman/Dockerfile
85-
image-name: builder-go
86-
tag-suffix: -1.18-podman
87-
platforms: linux/amd64,linux/arm64
88-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
89-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
90-
build-args: "GOLANG_VERSION=1.18"
91-
92-
BuildMaven:
93-
needs: BuildBase
94-
runs-on: ubuntu-20.04
95-
steps:
96-
- uses: actions/checkout@v2
97-
- name: Build maven agent
98-
uses: ./.github/actions/build
99-
with:
100-
context: maven
101-
dockerfile: maven/podman/Dockerfile
102-
image-name: builder-maven
103-
tag-suffix: -podman
104-
platforms: linux/amd64,linux/arm64
105-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
106-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
107-
build-args: "JDK_VERSION=1.8.0"
108-
BuildMavenJDK11:
109-
needs: BuildBase
110-
runs-on: ubuntu-20.04
111-
steps:
112-
- uses: actions/checkout@v2
113-
- name: Build maven(JDK11) agent
114-
uses: ./.github/actions/build
115-
with:
116-
context: maven
117-
dockerfile: maven/podman/Dockerfile
118-
image-name: builder-maven
119-
tag-suffix: -jdk11-podman
120-
platforms: linux/amd64,linux/arm64
121-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
122-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
123-
build-args: "JDK_VERSION=11"
124-
125-
BuildMavenJDK17:
126-
needs: BuildBase
127-
runs-on: ubuntu-20.04
128-
steps:
129-
- uses: actions/checkout@v2
130-
- name: Build maven(JDK17) agent
131-
uses: ./.github/actions/build
132-
with:
133-
context: maven
134-
dockerfile: maven/podman/Dockerfile
135-
image-name: builder-maven
136-
tag-suffix: -jdk17-podman
137-
platforms: linux/amd64,linux/arm64
138-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
139-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
140-
build-args: |
141-
"JDK_VERSION=17"
142-
"JDK_HOME=/usr/java/default"
143-
144-
BuildGradle:
145-
needs: BuildBase
146-
runs-on: ubuntu-20.04
147-
steps:
148-
- uses: actions/checkout@v2
149-
- name: Build Gradle agent
150-
uses: ./.github/actions/build
151-
with:
152-
context: gradle
153-
dockerfile: gradle/podman/Dockerfile
154-
image-name: builder-gradle
155-
tag-suffix: -podman
156-
platforms: linux/amd64,linux/arm64
157-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
158-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
159-
160-
BuildNodeJs:
161-
needs: BuildBase
162-
runs-on: ubuntu-20.04
163-
steps:
164-
- uses: actions/checkout@v2
165-
- name: Build NodeJS agent
166-
uses: ./.github/actions/build
167-
with:
168-
context: nodejs
169-
dockerfile: nodejs/podman/Dockerfile
170-
image-name: builder-nodejs
171-
tag-suffix: -podman
172-
platforms: linux/amd64,linux/arm64
173-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
174-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
175-
176-
BuildPython:
177-
needs: BuildBase
178-
runs-on: ubuntu-20.04
179-
steps:
180-
- uses: actions/checkout@v2
181-
- name: Build Python agent
182-
uses: ./.github/actions/build
183-
with:
184-
context: python
185-
dockerfile: python/podman/Dockerfile
186-
image-name: builder-python
187-
tag-suffix: -podman
188-
platforms: linux/amd64,linux/arm64
189-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
190-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}

.github/workflows/build.yaml

Lines changed: 1 addition & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
BuildBase:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Build base agent
@@ -22,177 +22,3 @@ jobs:
2222
platforms: linux/amd64,linux/arm64
2323
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
2424
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
25-
26-
BuildGo:
27-
needs: BuildBase
28-
runs-on: ubuntu-20.04
29-
steps:
30-
- uses: actions/checkout@v2
31-
- name: Build Go agent
32-
uses: ./.github/actions/build
33-
with:
34-
context: go
35-
dockerfile: go/Dockerfile
36-
image-name: builder-go
37-
platforms: linux/amd64,linux/arm64
38-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
39-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
40-
build-args: "GOLANG_VERSION=1.12.10"
41-
BuildGo16:
42-
needs: BuildBase
43-
runs-on: ubuntu-20.04
44-
steps:
45-
- uses: actions/checkout@v2
46-
- name: Build Go 1.16 agent
47-
uses: ./.github/actions/build
48-
with:
49-
context: go
50-
dockerfile: go/Dockerfile
51-
image-name: builder-go
52-
tag-suffix: -1.16
53-
platforms: linux/amd64,linux/arm64
54-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
55-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
56-
build-args: "GOLANG_VERSION=1.16.8"
57-
BuildGo17:
58-
needs: BuildBase
59-
runs-on: ubuntu-20.04
60-
steps:
61-
- uses: actions/checkout@v2
62-
- name: Build Go 1.17 agent
63-
uses: ./.github/actions/build
64-
with:
65-
context: go
66-
dockerfile: go/Dockerfile
67-
image-name: builder-go
68-
tag-suffix: -1.17
69-
platforms: linux/amd64,linux/arm64
70-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
71-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
72-
build-args: "GOLANG_VERSION=1.17.8"
73-
BuildGo18:
74-
needs: BuildBase
75-
runs-on: ubuntu-20.04
76-
steps:
77-
- uses: actions/checkout@v2
78-
- name: Build Go 1.18 agent
79-
uses: ./.github/actions/build
80-
with:
81-
context: go
82-
dockerfile: go/Dockerfile
83-
image-name: builder-go
84-
tag-suffix: -1.18
85-
platforms: linux/amd64,linux/arm64
86-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
87-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
88-
build-args: "GOLANG_VERSION=1.18"
89-
90-
BuildMaven:
91-
needs: BuildBase
92-
runs-on: ubuntu-20.04
93-
steps:
94-
- uses: actions/checkout@v2
95-
- name: Build maven agent
96-
uses: ./.github/actions/build
97-
with:
98-
context: maven
99-
dockerfile: maven/Dockerfile
100-
image-name: builder-maven
101-
platforms: linux/amd64,linux/arm64
102-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
103-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
104-
build-args: "JDK_VERSION=1.8.0"
105-
BuildMavenJDK11:
106-
needs: BuildBase
107-
runs-on: ubuntu-20.04
108-
steps:
109-
- uses: actions/checkout@v2
110-
- name: Build maven(JDK11) agent
111-
uses: ./.github/actions/build
112-
with:
113-
context: maven
114-
dockerfile: maven/Dockerfile
115-
image-name: builder-maven
116-
tag-suffix: -jdk11
117-
platforms: linux/amd64,linux/arm64
118-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
119-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
120-
build-args: "JDK_VERSION=11"
121-
BuildMavenJDK17:
122-
needs: BuildBase
123-
runs-on: ubuntu-20.04
124-
steps:
125-
- uses: actions/checkout@v2
126-
- name: Build maven(JDK17) agent
127-
uses: ./.github/actions/build
128-
with:
129-
context: maven
130-
dockerfile: maven/Dockerfile
131-
image-name: builder-maven
132-
tag-suffix: -jdk17
133-
platforms: linux/amd64,linux/arm64
134-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
135-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
136-
build-args: |
137-
"JDK_VERSION=17"
138-
"JDK_HOME=/usr/java/default"
139-
140-
BuildGradle:
141-
needs: BuildBase
142-
runs-on: ubuntu-20.04
143-
steps:
144-
- uses: actions/checkout@v2
145-
- name: Build Gradle agent
146-
uses: ./.github/actions/build
147-
with:
148-
context: gradle
149-
dockerfile: gradle/Dockerfile
150-
image-name: builder-gradle
151-
platforms: linux/amd64,linux/arm64
152-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
153-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
154-
155-
BuildNodeJs:
156-
needs: BuildBase
157-
runs-on: ubuntu-20.04
158-
steps:
159-
- uses: actions/checkout@v2
160-
- name: Build NodeJS agent
161-
uses: ./.github/actions/build
162-
with:
163-
context: nodejs
164-
dockerfile: nodejs/Dockerfile
165-
image-name: builder-nodejs
166-
platforms: linux/amd64,linux/arm64
167-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
168-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
169-
170-
BuildDotnet:
171-
needs: BuildBase
172-
runs-on: ubuntu-20.04
173-
steps:
174-
- uses: actions/checkout@v2
175-
- name: Build DotNet agent
176-
uses: ./.github/actions/build
177-
with:
178-
context: dotnet
179-
dockerfile: dotnet/Dockerfile
180-
image-name: builder-dotnet
181-
platforms: linux/amd64,linux/arm64
182-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
183-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}
184-
185-
BuildPython:
186-
needs: BuildBase
187-
runs-on: ubuntu-20.04
188-
steps:
189-
- uses: actions/checkout@v2
190-
- name: Build Python agent
191-
uses: ./.github/actions/build
192-
with:
193-
context: python
194-
dockerfile: python/Dockerfile
195-
image-name: builder-python
196-
platforms: linux/amd64,linux/arm64
197-
docker-namespace: ${{ secrets.DOCKER_HUB_USER }}
198-
docker-password: ${{ secrets.DOCKER_HUB_SECRETS }}

base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM kubespheredev/builder-base:v3.2.2
1+
FROM kubespheredev/builder-base:v3.3.1
22

33
WORKDIR /home/jenkins
44

base/podman/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM kubesphere/builder-base:v3.2.2-podman
1+
FROM kubesphere/builder-base:v3.3.1-podman
22

33
WORKDIR /home/jenkins
44

0 commit comments

Comments
 (0)