mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-06-30 17:41:50 +00:00
Change github action to use ghcr.io
This commit is contained in:
parent
40a0faed5e
commit
20049dedfe
91
.github/workflows/image-push-master.yml
vendored
91
.github/workflows/image-push-master.yml
vendored
@ -3,9 +3,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
env:
|
|
||||||
REPOSITORY: docker.io/nfvpe/multus
|
|
||||||
REPOSITORY_USER: nfvperobot
|
|
||||||
jobs:
|
jobs:
|
||||||
push-amd64:
|
push-amd64:
|
||||||
name: Image push/amd64
|
name: Image push/amd64
|
||||||
@ -17,22 +14,23 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:latest-amd64
|
ghcr.io/${{ github.repository }}:latest-amd64
|
||||||
${{ env.REPOSITORY }}:snapshot-amd64
|
ghcr.io/${{ github.repository }}:snapshot-amd64
|
||||||
file: deployments/Dockerfile
|
file: deployments/Dockerfile
|
||||||
|
|
||||||
push-arm64:
|
push-arm64:
|
||||||
@ -45,22 +43,23 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:latest-arm64
|
ghcr.io/${{ github.repository }}:latest-arm64
|
||||||
${{ env.REPOSITORY }}:snapshot-arm64
|
ghcr.io/${{ github.repository }}:snapshot-arm64
|
||||||
file: deployments/Dockerfile.arm64
|
file: deployments/Dockerfile.arm64
|
||||||
|
|
||||||
push-ppc64le:
|
push-ppc64le:
|
||||||
@ -73,22 +72,23 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:latest-ppc64le
|
ghcr.io/${{ github.repository }}:latest-ppc64le
|
||||||
${{ env.REPOSITORY }}:snapshot-ppc64le
|
ghcr.io/${{ github.repository }}:snapshot-ppc64le
|
||||||
file: deployments/Dockerfile.ppc64le
|
file: deployments/Dockerfile.ppc64le
|
||||||
|
|
||||||
push-s390x:
|
push-s390x:
|
||||||
@ -101,22 +101,23 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:latest-s390x
|
ghcr.io/${{ github.repository }}:latest-s390x
|
||||||
${{ env.REPOSITORY }}:snapshot-s390x
|
ghcr.io/${{ github.repository }}:snapshot-s390x
|
||||||
file: deployments/Dockerfile.s390x
|
file: deployments/Dockerfile.s390x
|
||||||
|
|
||||||
push-origin:
|
push-origin:
|
||||||
@ -129,40 +130,44 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:latest-origin
|
ghcr.io/${{ github.repository }}:latest-origin
|
||||||
${{ env.REPOSITORY }}:snapshot-origin
|
ghcr.io/${{ github.repository }}:snapshot-origin
|
||||||
file: deployments/Dockerfile.openshift
|
file: deployments/Dockerfile.openshift
|
||||||
|
|
||||||
push-manifest:
|
push-manifest:
|
||||||
needs: [push-amd64, push-arm64, push-ppc64le, push-s390x]
|
needs: [push-amd64, push-arm64, push-ppc64le, push-s390x]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
REPOSITORY: ghcr.io/${{ github.repository }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Create manifest for multi-arch images
|
- name: Create manifest for multi-arch images
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
run: |
|
run: |
|
||||||
# get artifacts from previous steps
|
# get artifacts from previous steps
|
||||||
docker pull ${{ env.REPOSITORY }}:snapshot-amd64
|
docker pull ${{ env.REPOSITORY }}:snapshot-amd64
|
||||||
|
93
.github/workflows/image-push-release.yml
vendored
93
.github/workflows/image-push-release.yml
vendored
@ -3,9 +3,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
env:
|
|
||||||
REPOSITORY: docker.io/nfvpe/multus
|
|
||||||
REPOSITORY_USER: nfvperobot
|
|
||||||
jobs:
|
jobs:
|
||||||
push-amd64:
|
push-amd64:
|
||||||
name: Image push/amd64
|
name: Image push/amd64
|
||||||
@ -17,28 +14,29 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REPOSITORY }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tag-latest: false
|
tag-latest: false
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:stable-amd64
|
ghcr.io/${{ github.repository }}:stable-amd64
|
||||||
${{ steps.docker_meta.outputs.tags }}-amd64
|
${{ steps.docker_meta.outputs.tags }}-amd64
|
||||||
file: deployments/Dockerfile
|
file: deployments/Dockerfile
|
||||||
|
|
||||||
@ -52,28 +50,29 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REPOSITORY }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tag-latest: false
|
tag-latest: false
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:stable-arm64
|
ghcr.io/${{ github.repository }}:stable-arm64
|
||||||
${{ steps.docker_meta.outputs.tags }}-arm64
|
${{ steps.docker_meta.outputs.tags }}-arm64
|
||||||
file: deployments/Dockerfile.arm64
|
file: deployments/Dockerfile.arm64
|
||||||
|
|
||||||
@ -87,28 +86,29 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REPOSITORY }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tag-latest: false
|
tag-latest: false
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:stable-ppc64le
|
ghcr.io/${{ github.repository }}:stable-ppc64le
|
||||||
${{ steps.docker_meta.outputs.tags }}-ppc64le
|
${{ steps.docker_meta.outputs.tags }}-ppc64le
|
||||||
file: deployments/Dockerfile.ppc64le
|
file: deployments/Dockerfile.ppc64le
|
||||||
|
|
||||||
@ -122,28 +122,29 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REPOSITORY }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tag-latest: false
|
tag-latest: false
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:stable-s390x
|
ghcr.io/${{ github.repository }}:stable-s390x
|
||||||
${{ steps.docker_meta.outputs.tags }}-s390x
|
${{ steps.docker_meta.outputs.tags }}-s390x
|
||||||
file: deployments/Dockerfile.s390x
|
file: deployments/Dockerfile.s390x
|
||||||
|
|
||||||
@ -157,34 +158,37 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REPOSITORY }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tag-latest: false
|
tag-latest: false
|
||||||
|
|
||||||
- name: Push container image
|
- name: Push container image
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPOSITORY }}:stable-origin
|
ghcr.io/${{ github.repository }}:stable-origin
|
||||||
${{ steps.docker_meta.outputs.tags }}-origin
|
${{ steps.docker_meta.outputs.tags }}-origin
|
||||||
file: deployments/Dockerfile.openshift
|
file: deployments/Dockerfile.openshift
|
||||||
|
|
||||||
push-manifest:
|
push-manifest:
|
||||||
needs: [push-amd64, push-arm64, push-ppc64le, push-s390x]
|
needs: [push-amd64, push-arm64, push-ppc64le, push-s390x]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
REPOSITORY: ghcr.io/${{ github.repository }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
@ -193,18 +197,19 @@ jobs:
|
|||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REPOSITORY }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tag-latest: false
|
tag-latest: false
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ env.REPOSITORY_USER }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.REPOSITORY_PASS }}
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Create manifest for multi-arch images
|
- name: Create manifest for multi-arch images
|
||||||
if: github.repository_owner == 'intel'
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
||||||
run: |
|
run: |
|
||||||
# get artifacts from previous steps
|
# get artifacts from previous steps
|
||||||
docker pull ${{ steps.docker_meta.outputs.tags }}-amd64
|
docker pull ${{ steps.docker_meta.outputs.tags }}-amd64
|
||||||
|
@ -13,6 +13,7 @@ RUN rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO && \
|
|||||||
./hack/build-go.sh
|
./hack/build-go.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni
|
||||||
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ RUN cd /usr/src/multus-cni && \
|
|||||||
|
|
||||||
# build arm64 container
|
# build arm64 container
|
||||||
FROM arm64v8/centos:7
|
FROM arm64v8/centos:7
|
||||||
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni
|
||||||
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
@ -8,6 +8,7 @@ ENV GO111MODULE=off
|
|||||||
RUN ./hack/build-go.sh
|
RUN ./hack/build-go.sh
|
||||||
|
|
||||||
FROM openshift/origin-base
|
FROM openshift/origin-base
|
||||||
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni
|
||||||
RUN mkdir -p /usr/src/multus-cni/images && mkdir -p /usr/src/multus-cni/bin
|
RUN mkdir -p /usr/src/multus-cni/images && mkdir -p /usr/src/multus-cni/bin
|
||||||
COPY --from=builder /usr/src/multus-cni/bin/multus /usr/src/multus-cni/bin
|
COPY --from=builder /usr/src/multus-cni/bin/multus /usr/src/multus-cni/bin
|
||||||
ADD ./images/entrypoint.sh /
|
ADD ./images/entrypoint.sh /
|
||||||
|
@ -17,6 +17,7 @@ RUN rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO && \
|
|||||||
|
|
||||||
# build ppc container
|
# build ppc container
|
||||||
FROM ppc64le/centos:latest
|
FROM ppc64le/centos:latest
|
||||||
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni
|
||||||
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
@ -12,6 +12,7 @@ RUN cd /usr/src/multus-cni && \
|
|||||||
|
|
||||||
# build s390x container
|
# build s390x container
|
||||||
FROM s390x/python:3-slim
|
FROM s390x/python:3-slim
|
||||||
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni
|
||||||
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
ADD ./images/entrypoint.sh /
|
ADD ./images/entrypoint.sh /
|
||||||
|
Loading…
Reference in New Issue
Block a user