Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/image-push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
jobs:
push-amd64:
name: Image push/amd64
if: github.repository_owner == 'k8snetworkplumbingwg'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -17,15 +18,13 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push container image
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/build-push-action@v6
with:
context: .
Expand All @@ -35,6 +34,7 @@ jobs:

push-origin:
name: Image push/origin
if: github.repository_owner == 'k8snetworkplumbingwg'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -44,15 +44,13 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push container image
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/build-push-action@v6
with:
context: .
Expand All @@ -62,6 +60,7 @@ jobs:

push-arm64:
name: Image build/arm64
if: github.repository_owner == 'k8snetworkplumbingwg'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -74,7 +73,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -92,6 +90,7 @@ jobs:

push-multi-arch:
name: Image build multi-arch
if: github.repository_owner == 'k8snetworkplumbingwg'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -104,7 +103,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/image-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
jobs:
push-amd64:
name: Image push/amd64
if: github.repository_owner == 'k8snetworkplumbingwg'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -17,7 +18,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -32,7 +32,6 @@ jobs:
tag-latest: false

- name: Push container image
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/build-push-action@v6
with:
context: .
Expand All @@ -43,6 +42,7 @@ jobs:

push-arm64:
name: Image push/arm64
if: github.repository_owner == 'k8snetworkplumbingwg'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -55,7 +55,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -70,7 +69,6 @@ jobs:
tag-latest: false

- name: Push container image
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/build-push-action@v6
with:
context: .
Expand All @@ -82,6 +80,7 @@ jobs:

push-multi-arch:
name: Image push multi-arch
if: github.repository_owner == 'k8snetworkplumbingwg'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -94,7 +93,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -109,7 +107,6 @@ jobs:
tag-latest: false

- name: Push container image
if: github.repository_owner == 'k8snetworkplumbingwg'
uses: docker/build-push-action@v6
with:
context: .
Expand Down
Loading