From 0d81f96648a5ac49b30d86cb8023469a731f4fa4 Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Mon, 27 Nov 2023 19:38:22 +0000 Subject: [PATCH] use creds to push to dockerhub --- .github/workflows/release.yaml | 6 +++--- Makefile | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 80c2d0885d..5f843aea54 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -188,10 +188,10 @@ jobs: uses: actions/checkout@v3 - uses: ./.github/actions/build-push-kotsadm-image with: - image-name: ttl.sh/salah/kotsadm:${{ needs.generate-tag.outputs.tag }} + image-name: index.docker.io/kotsadm/kotsadm:${{ needs.generate-tag.outputs.tag }} git-tag: ${{ needs.generate-tag.outputs.tag }} - # registry-username: ${{ secrets.DOCKERHUB_USER }} - # registry-password: ${{ secrets.DOCKERHUB_PASSWORD }} + registry-username: ${{ secrets.DOCKERHUB_USER }} + registry-password: ${{ secrets.DOCKERHUB_PASSWORD }} - uses: azure/docker-login@v1 env: DOCKER_CONFIG: ./.docker diff --git a/Makefile b/Makefile index a88aeb711d..45e10ed58d 100644 --- a/Makefile +++ b/Makefile @@ -133,10 +133,6 @@ build-alpha: .PHONY: build-release build-release: - docker pull ttl.sh/salah/kotsadm:${GIT_TAG} - docker tag ttl.sh/salah/kotsadm:${GIT_TAG} kotsadm/kotsadm:${GIT_TAG} - docker push kotsadm/kotsadm:${GIT_TAG} - mkdir -p bin/docker-archive/kotsadm skopeo copy docker-daemon:kotsadm/kotsadm:${GIT_TAG} docker-archive:bin/docker-archive/kotsadm/${GIT_TAG}