Skip to content

Commit

Permalink
Merge pull request #540 from Nordix/restrict-workflow/adil
Browse files Browse the repository at this point in the history
🌱 Making workflows not run on forks.
  • Loading branch information
zeeke authored May 15, 2024
2 parents 2c58dda + bac9c4c commit 2519961
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Go test with coverage
run: make test-coverage

- name: Coveralls
uses: coverallsapp/[email protected]
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/image-push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ on:
push:
branches:
- master
env:
image-push-owner: 'k8snetworkplumbingwg'
jobs:
build-and-push-amd64-device-plugin:
if: ${{ github.repository_owner == env.image-push-owner }}
name: Image push AMD64
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -35,6 +38,7 @@ jobs:
file: images/Dockerfile

build-and-push-arm64-device-plugin:
if: ${{ github.repository_owner == env.image-push-owner }}
name: Image push ARM64
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -67,6 +71,7 @@ jobs:
file: images/Dockerfile.arm64

build-and-push-ppc64le-device-plugin:
if: ${{ github.repository_owner == env.image-push-owner }}
name: Image push ppc64le
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -99,6 +104,7 @@ jobs:
file: images/Dockerfile.ppc64le

push-manifest:
if: ${{ github.repository_owner == env.image-push-owner }}
runs-on: ubuntu-20.04
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/image-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ on:
push:
tags:
- v*
env:
image-push-owner: 'k8snetworkplumbingwg'
jobs:
build-and-push-amd64-device-plugin:
if: ${{ github.repository_owner == env.image-push-owner }}
name: Image push AMD64
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -44,6 +47,7 @@ jobs:
file: images/Dockerfile

build-and-push-arm64-device-plugin:
if: ${{ github.repository_owner == env.image-push-owner }}
name: Image push ARM64
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -87,6 +91,7 @@ jobs:
file: images/Dockerfile.arm64

build-and-push-ppc64le-device-plugin:
if: ${{ github.repository_owner == env.image-push-owner }}
name: Image push ppc64le
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -129,6 +134,7 @@ jobs:
file: images/Dockerfile.ppc64le

push-manifest:
if: ${{ github.repository_owner == env.image-push-owner }}
runs-on: ubuntu-20.04
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
Expand Down

0 comments on commit 2519961

Please sign in to comment.