Skip to content

Commit 4c908a2

Browse files
committed
ci: add image-push-master for arm64
1 parent 2789b2e commit 4c908a2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,33 @@ jobs:
3333
tags: ghcr.io/${{ github.repository }}:latest-amd64
3434
file: Dockerfile
3535

36+
push-arm64:
37+
name: Image push/arm64
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Check out code into the Go module directory
41+
uses: actions/checkout@v2
42+
43+
- name: Set up Docker Buildx
44+
uses: docker/setup-buildx-action@v1
45+
46+
- name: Login to Container Registry
47+
if: github.repository_owner == 'k8snetworkplumbingwg'
48+
uses: docker/login-action@v1
49+
with:
50+
registry: ghcr.io
51+
username: ${{ github.repository_owner }}
52+
password: ${{ secrets.GITHUB_TOKEN }}
53+
54+
- name: Push container image
55+
if: github.repository_owner == 'k8snetworkplumbingwg'
56+
uses: docker/build-push-action@v2
57+
with:
58+
context: .
59+
push: true
60+
tags: ghcr.io/${{ github.repository }}:latest-arm64
61+
file: Dockerfile.arm64
62+
3663
push-origin:
3764
name: Image push/origin
3865
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)