From f8fc6e5017c89be79fb86a32f6d41a8a0cf92d8a Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Tue, 28 Sep 2021 17:42:49 +0200 Subject: [PATCH] build: add quay.io as second registry Signed-off-by: Christian Kotzbauer --- .github/workflows/on-main-push.yaml | 7 +++++++ .github/workflows/on-tag.yaml | 7 +++++++ Makefile | 2 ++ 3 files changed, 16 insertions(+) diff --git a/.github/workflows/on-main-push.yaml b/.github/workflows/on-main-push.yaml index ddb301d..a51bcf9 100644 --- a/.github/workflows/on-main-push.yaml +++ b/.github/workflows/on-main-push.yaml @@ -29,6 +29,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME_WEAVEWORKSKUREDCI }} password: ${{ secrets.DOCKERHUB_TOKEN_WEAVEWORKSKUREDCI }} + - name: Login to quay.io + uses: docker/login-action@v1 + with: + registry: quay.io + username: ${{ secrets.QUAYIO_USERNAME_WEAVEWORKSKUREDCI }} + password: ${{ secrets.QUAYIO_TOKEN_WEAVEWORKSKUREDCI }} + - name: Build image run: | make DH_ORG="${{ github.repository_owner }}" image diff --git a/.github/workflows/on-tag.yaml b/.github/workflows/on-tag.yaml index ebd3f5e..e46cf27 100644 --- a/.github/workflows/on-tag.yaml +++ b/.github/workflows/on-tag.yaml @@ -37,6 +37,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME_WEAVEWORKSKUREDCI }} password: ${{ secrets.DOCKERHUB_TOKEN_WEAVEWORKSKUREDCI }} + - name: Login to quay.io + uses: docker/login-action@v1 + with: + registry: quay.io + username: ${{ secrets.QUAYIO_USERNAME_WEAVEWORKSKUREDCI }} + password: ${{ secrets.QUAYIO_TOKEN_WEAVEWORKSKUREDCI }} + - name: Publish image run: | make DH_ORG="${{ github.repository_owner }}" VERSION="${{ steps.tags.outputs.version }}" publish-image diff --git a/Makefile b/Makefile index 36b259c..681388d 100644 --- a/Makefile +++ b/Makefile @@ -24,12 +24,14 @@ build/.image.done: cmd/kured/Dockerfile cmd/kured/kured cp $^ build $(SUDO) docker build -t docker.io/$(DH_ORG)/kured -f build/Dockerfile ./build $(SUDO) docker tag docker.io/$(DH_ORG)/kured docker.io/$(DH_ORG)/kured:$(VERSION) + $(SUDO) docker tag docker.io/$(DH_ORG)/kured quay.io/$(DH_ORG)/kured:$(VERSION) touch $@ image: build/.image.done publish-image: image $(SUDO) docker push docker.io/$(DH_ORG)/kured:$(VERSION) + $(SUDO) docker push quay.io/$(DH_ORG)/kured:$(VERSION) minikube-publish: image $(SUDO) docker save docker.io/$(DH_ORG)/kured | (eval $$(minikube docker-env) && docker load)