7
7
image-push-owner : ' k8snetworkplumbingwg'
8
8
jobs :
9
9
build-and-push-amd64-device-plugin :
10
- if : ${{ github.repository_owner == env.image-push-owner }}
11
10
name : Image push AMD64
12
11
runs-on : ubuntu-20.04
13
12
env :
37
36
type=ref,event=tag
38
37
39
38
- name : Build and push sriov-network-device-plugin
39
+ if : ${{ github.repository_owner == env.image-push-owner }}
40
40
uses : docker/build-push-action@v4
41
41
with :
42
42
context : .
47
47
file : images/Dockerfile
48
48
49
49
build-and-push-arm64-device-plugin :
50
- if : ${{ github.repository_owner == env.image-push-owner }}
51
50
name : Image push ARM64
52
51
runs-on : ubuntu-20.04
53
52
env :
81
80
82
81
83
82
- name : Build and push sriov-network-device-plugin
83
+ if : ${{ github.repository_owner == env.image-push-owner }}
84
84
uses : docker/build-push-action@v4
85
85
with :
86
86
context : .
91
91
file : images/Dockerfile.arm64
92
92
93
93
build-and-push-ppc64le-device-plugin :
94
- if : ${{ github.repository_owner == env.image-push-owner }}
95
94
name : Image push ppc64le
96
95
runs-on : ubuntu-20.04
97
96
env :
@@ -124,6 +123,7 @@ jobs:
124
123
type=ref,event=tag
125
124
126
125
- name : Build and push sriov-network-device-plugin
126
+ if : ${{ github.repository_owner == env.image-push-owner }}
127
127
uses : docker/build-push-action@v4
128
128
with :
129
129
context : .
@@ -134,16 +134,17 @@ jobs:
134
134
file : images/Dockerfile.ppc64le
135
135
136
136
push-manifest :
137
- if : ${{ github.repository_owner == env.image-push-owner }}
138
137
runs-on : ubuntu-20.04
139
138
env :
140
139
IMAGE_NAME : ghcr.io/${{ github.repository }}
141
140
needs : [build-and-push-amd64-device-plugin,build-and-push-arm64-device-plugin,build-and-push-ppc64le-device-plugin]
142
141
steps :
143
142
- name : Set up Docker Buildx
143
+ if : ${{ github.repository_owner == env.image-push-owner }}
144
144
uses : docker/setup-buildx-action@v2
145
145
146
146
- name : Docker meta
147
+ if : ${{ github.repository_owner == env.image-push-owner }}
147
148
id : docker_meta
148
149
uses : docker/metadata-action@v4
149
150
with :
@@ -154,13 +155,15 @@ jobs:
154
155
type=ref,event=tag
155
156
156
157
- name : Login to GitHub Container Registry
158
+ if : ${{ github.repository_owner == env.image-push-owner }}
157
159
uses : docker/login-action@v2
158
160
with :
159
161
registry : ghcr.io
160
162
username : ${{ github.repository_owner }}
161
163
password : ${{ secrets.GITHUB_TOKEN }}
162
164
163
165
- name : Create manifest for multi-arch images
166
+ if : ${{ github.repository_owner == env.image-push-owner }}
164
167
run : |
165
168
docker buildx imagetools create -t ${{ steps.docker_meta.outputs.tags }} \
166
169
${{ steps.docker_meta.outputs.tags }}-amd64 \
0 commit comments