Skip to content

Commit 87eaaa3

Browse files
Fixes workflow scripts
Signed-off-by: adil ghaffar <[email protected]>
1 parent 2519961 commit 87eaaa3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/image-push-master.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ env:
77
image-push-owner: 'k8snetworkplumbingwg'
88
jobs:
99
build-and-push-amd64-device-plugin:
10-
if: ${{ github.repository_owner == env.image-push-owner }}
1110
name: Image push AMD64
1211
runs-on: ubuntu-20.04
1312
env:
@@ -27,6 +26,7 @@ jobs:
2726
password: ${{ secrets.GITHUB_TOKEN }}
2827

2928
- name: Build and push sriov-network-device-plugin
29+
if: ${{ github.repository_owner == env.image-push-owner }}
3030
uses: docker/build-push-action@v4
3131
with:
3232
context: .
@@ -38,7 +38,6 @@ jobs:
3838
file: images/Dockerfile
3939

4040
build-and-push-arm64-device-plugin:
41-
if: ${{ github.repository_owner == env.image-push-owner }}
4241
name: Image push ARM64
4342
runs-on: ubuntu-20.04
4443
env:
@@ -61,6 +60,7 @@ jobs:
6160
password: ${{ secrets.GITHUB_TOKEN }}
6261

6362
- name: Build and push sriov-network-device-plugin
63+
if: ${{ github.repository_owner == env.image-push-owner }}
6464
uses: docker/build-push-action@v4
6565
with:
6666
context: .
@@ -71,7 +71,6 @@ jobs:
7171
file: images/Dockerfile.arm64
7272

7373
build-and-push-ppc64le-device-plugin:
74-
if: ${{ github.repository_owner == env.image-push-owner }}
7574
name: Image push ppc64le
7675
runs-on: ubuntu-20.04
7776
env:
@@ -94,6 +93,7 @@ jobs:
9493
password: ${{ secrets.GITHUB_TOKEN }}
9594

9695
- name: Build and push sriov-network-device-plugin
96+
if: ${{ github.repository_owner == env.image-push-owner }}
9797
uses: docker/build-push-action@v4
9898
with:
9999
context: .
@@ -104,7 +104,6 @@ jobs:
104104
file: images/Dockerfile.ppc64le
105105

106106
push-manifest:
107-
if: ${{ github.repository_owner == env.image-push-owner }}
108107
runs-on: ubuntu-20.04
109108
env:
110109
IMAGE_NAME: ghcr.io/${{ github.repository }}

.github/workflows/image-push-release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ env:
77
image-push-owner: 'k8snetworkplumbingwg'
88
jobs:
99
build-and-push-amd64-device-plugin:
10-
if: ${{ github.repository_owner == env.image-push-owner }}
1110
name: Image push AMD64
1211
runs-on: ubuntu-20.04
1312
env:
@@ -37,6 +36,7 @@ jobs:
3736
type=ref,event=tag
3837
3938
- name: Build and push sriov-network-device-plugin
39+
if: ${{ github.repository_owner == env.image-push-owner }}
4040
uses: docker/build-push-action@v4
4141
with:
4242
context: .
@@ -47,7 +47,6 @@ jobs:
4747
file: images/Dockerfile
4848

4949
build-and-push-arm64-device-plugin:
50-
if: ${{ github.repository_owner == env.image-push-owner }}
5150
name: Image push ARM64
5251
runs-on: ubuntu-20.04
5352
env:
@@ -81,6 +80,7 @@ jobs:
8180
8281
8382
- name: Build and push sriov-network-device-plugin
83+
if: ${{ github.repository_owner == env.image-push-owner }}
8484
uses: docker/build-push-action@v4
8585
with:
8686
context: .
@@ -91,7 +91,6 @@ jobs:
9191
file: images/Dockerfile.arm64
9292

9393
build-and-push-ppc64le-device-plugin:
94-
if: ${{ github.repository_owner == env.image-push-owner }}
9594
name: Image push ppc64le
9695
runs-on: ubuntu-20.04
9796
env:
@@ -124,6 +123,7 @@ jobs:
124123
type=ref,event=tag
125124
126125
- name: Build and push sriov-network-device-plugin
126+
if: ${{ github.repository_owner == env.image-push-owner }}
127127
uses: docker/build-push-action@v4
128128
with:
129129
context: .
@@ -134,7 +134,6 @@ jobs:
134134
file: images/Dockerfile.ppc64le
135135

136136
push-manifest:
137-
if: ${{ github.repository_owner == env.image-push-owner }}
138137
runs-on: ubuntu-20.04
139138
env:
140139
IMAGE_NAME: ghcr.io/${{ github.repository }}

0 commit comments

Comments
 (0)