diff --git a/.github/workflows/docker-build-push-master.yml b/.github/workflows/docker-build-push-master.yml deleted file mode 100644 index ab1554a94..000000000 --- a/.github/workflows/docker-build-push-master.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Docker-build-push-latest -on: - push: - branches: - - master -jobs: - build: - name: Docker build - runs-on: ubuntu-latest - env: - DOCKER_CLI_EXPERIMENTAL: enabled - GO111MODULE: on - TARGET: amd64 - REPOSITORY: nfvpe/multus - REPOSITORY_USER: nfvperobot - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Build latest-amd64 - run: docker build -t ${REPOSITORY}:latest-amd64 . - - - name: Build latest-ppc64le - run: docker build -t ${REPOSITORY}:latest-ppc64le -f Dockerfile.ppc64le . - - - name: Build latest-arm64v8 - run: docker build -t ${REPOSITORY}:latest-arm64v8 -f Dockerfile.arm64 . - - - name: Build latest-origin - run: docker build -t ${REPOSITORY}:latest-origin -f Dockerfile.openshift . - - - name: Tag snapshot - run: | - docker tag ${REPOSITORY}:latest-amd64 ${REPOSITORY}:snapshot-amd64 - docker tag ${REPOSITORY}:latest-ppc64le ${REPOSITORY}:snapshot-ppc64le - docker tag ${REPOSITORY}:latest-arm64v8 ${REPOSITORY}:snapshot-arm64v8 - - - name: Login to registry - run: docker login -u ${REPOSITORY_USER} -p ${{ secrets. REPOSITORY_PASS }} - - - name: Push latest/snapshot images - run: | - docker push ${REPOSITORY}:latest-amd64 - docker push ${REPOSITORY}:latest-ppc64le - docker push ${REPOSITORY}:latest-arm64v8 - docker push ${REPOSITORY}:snapshot-amd64 - docker push ${REPOSITORY}:snapshot-ppc64le - docker push ${REPOSITORY}:snapshot-arm64v8 - - - name: Create manifest for multi-arch images - run: | - docker manifest create ${REPOSITORY}:snapshot ${REPOSITORY}:snapshot-amd64 ${REPOSITORY}:snapshot-ppc64le ${REPOSITORY}:snapshot-arm64v8 - docker manifest annotate ${REPOSITORY}:snapshot ${REPOSITORY}:snapshot-amd64 --arch amd64 - docker manifest annotate ${REPOSITORY}:snapshot ${REPOSITORY}:snapshot-ppc64le --arch ppc64le - docker manifest annotate ${REPOSITORY}:snapshot ${REPOSITORY}:snapshot-arm64v8 --arch arm64 - docker manifest push ${REPOSITORY}:snapshot - docker manifest create ${REPOSITORY}:latest ${REPOSITORY}:latest-amd64 ${REPOSITORY}:latest-ppc64le ${REPOSITORY}:latest-arm64v8 - docker manifest annotate ${REPOSITORY}:latest ${REPOSITORY}:latest-amd64 --arch amd64 - docker manifest annotate ${REPOSITORY}:latest ${REPOSITORY}:latest-ppc64le --arch ppc64le - docker manifest annotate ${REPOSITORY}:latest ${REPOSITORY}:latest-arm64v8 --arch arm64 - docker manifest push ${REPOSITORY}:latest diff --git a/.github/workflows/docker-build-push-release.yml b/.github/workflows/docker-build-push-release.yml deleted file mode 100644 index e0ff0544b..000000000 --- a/.github/workflows/docker-build-push-release.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: Docker-build-push-stable -on: - push: - tags: - - v* -jobs: - build: - name: Docker build - runs-on: ubuntu-latest - env: - DOCKER_CLI_EXPERIMENTAL: enabled - GO111MODULE: on - TARGET: amd64 - REPOSITORY: nfvpe/multus - REPOSITORY_USER: nfvperobot - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Build latest-amd64 - run: docker build -t ${REPOSITORY}:latest-amd64 . - - - name: Build latest-ppc64le - run: docker build -t ${REPOSITORY}:latest-ppc64le -f Dockerfile.ppc64le . - - - name: Build latest-arm64v8 - run: docker build -t ${REPOSITORY}:latest-arm64v8 -f Dockerfile.arm64 . - - - name: Build latest-origin - run: docker build -t ${REPOSITORY}:latest-origin -f Dockerfile.openshift . - - - name: Tag stable - run: | - docker tag ${REPOSITORY}:latest-amd64 ${REPOSITORY}:stable-amd64 - docker tag ${REPOSITORY}:latest-ppc64le ${REPOSITORY}:stable-ppc64le - docker tag ${REPOSITORY}:latest-arm64v8 ${REPOSITORY}:stable-arm64v8 - docker tag ${REPOSITORY}:latest-amd64 ${REPOSITORY}:${GITHUB_REF##*/}-amd64 - docker tag ${REPOSITORY}:latest-ppc64le ${REPOSITORY}:${GITHUB_REF##*/}-ppc64le - docker tag ${REPOSITORY}:latest-arm64v8 ${REPOSITORY}:${GITHUB_REF##*/}-arm64v8 - - - name: Login to registry - run: docker login -u ${REPOSITORY_USER} -p ${{ secrets. REPOSITORY_PASS }} - - - name: Push latest/snapshot images - run: | - docker push ${REPOSITORY}:latest-amd64 - docker push ${REPOSITORY}:latest-ppc64le - docker push ${REPOSITORY}:latest-arm64v8 - docker push ${REPOSITORY}:stable-amd64 - docker push ${REPOSITORY}:stable-ppc64le - docker push ${REPOSITORY}:stable-arm64v8 - docker push ${REPOSITORY}:${GITHUB_REF##*/}-amd64 - docker push ${REPOSITORY}:${GITHUB_REF##*/}-ppc64le - docker push ${REPOSITORY}:${GITHUB_REF##*/}-arm64v8 - - - name: Create manifest for multi-arch images - run: | - docker manifest create ${REPOSITORY}:stable ${REPOSITORY}:stable-amd64 ${REPOSITORY}:stable-ppc64le ${REPOSITORY}:stable-arm64v8 - docker manifest annotate ${REPOSITORY}:stable ${REPOSITORY}:stable-amd64 --arch amd64 - docker manifest annotate ${REPOSITORY}:stable ${REPOSITORY}:stable-ppc64le --arch ppc64le - docker manifest annotate ${REPOSITORY}:stable ${REPOSITORY}:stable-arm64v8 --arch arm64 - docker manifest push ${REPOSITORY}:stable - docker manifest create ${REPOSITORY}:latest ${REPOSITORY}:latest-amd64 ${REPOSITORY}:latest-ppc64le ${REPOSITORY}:latest-arm64v8 - docker manifest annotate ${REPOSITORY}:latest ${REPOSITORY}:latest-amd64 --arch amd64 - docker manifest annotate ${REPOSITORY}:latest ${REPOSITORY}:latest-ppc64le --arch ppc64le - docker manifest annotate ${REPOSITORY}:latest ${REPOSITORY}:latest-arm64v8 --arch arm64 - docker manifest push ${REPOSITORY}:latest - docker manifest create ${REPOSITORY}:${GITHUB_REF##*/} ${REPOSITORY}:${GITHUB_REF##*/}-amd64 ${REPOSITORY}:${GITHUB_REF##*/}-ppc64le ${REPOSITORY}:${GITHUB_REF##*/}-arm64v8 - docker manifest annotate ${REPOSITORY}:${GITHUB_REF##*/} ${REPOSITORY}:${GITHUB_REF##*/}-amd64 --arch amd64 - docker manifest annotate ${REPOSITORY}:${GITHUB_REF##*/} ${REPOSITORY}:${GITHUB_REF##*/}-ppc64le --arch ppc64le - docker manifest annotate ${REPOSITORY}:${GITHUB_REF##*/} ${REPOSITORY}:${GITHUB_REF##*/}-arm64v8 --arch arm64 - docker manifest push ${REPOSITORY}:${GITHUB_REF##*/} diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml deleted file mode 100644 index d83e8a348..000000000 --- a/.github/workflows/docker-build.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Docker-build -on: [pull_request] -jobs: - build: - name: Docker build - runs-on: ubuntu-latest - env: - DOCKER_CLI_EXPERIMENTAL: enabled - GO111MODULE: on - REPOSITORY: nfvpe/multus - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Build latest-amd64 - run: docker build -t ${REPOSITORY}:latest-amd64 . - - - name: Build latest-ppc64le - run: docker build -t ${REPOSITORY}:latest-ppc64le -f Dockerfile.ppc64le . - - - name: Build latest-origin - run: docker build -t ${REPOSITORY}:latest-origin -f Dockerfile.openshift . diff --git a/.github/workflows/go-build-ppc64.yml b/.github/workflows/go-build-ppc64.yml deleted file mode 100644 index a185a1672..000000000 --- a/.github/workflows/go-build-ppc64.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Go-build-ppc64le -on: [push, pull_request] -jobs: - - build: - name: Build and test - runs-on: ubuntu-latest - if: > - (( github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login ) && - github.event_name == 'pull_request' ) || (github.event_name == 'push' && github.event.commits != '[]' ) - env: - GO111MODULE: on - TARGET: ppc64le - steps: - - name: Set up Go 1.13 - uses: actions/setup-go@v1 - with: - go-version: 1.13 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Build - run: GOARCH="${TARGET}" ./build