From a2ca04c8ca93b8f3e4bc8f7df0da5fffbcece7d8 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 14 Jun 2023 16:46:20 -0700 Subject: [PATCH] Use ghcr.io Signed-off-by: Tamal Saha --- .github/workflows/release.yml | 9 +++++---- Makefile | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a596533..a8ce2da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,11 +31,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - uses: docker/login-action@v1 + - name: Log in to the GitHub Container registry + uses: docker/login-action@v2 with: - username: 1gtm - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Run checks run: | diff --git a/Makefile b/Makefile index 8069e27..8937c9f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL=/bin/bash -o pipefail -REGISTRY ?= kubedb +REGISTRY ?= ghcr.io/kubedb BIN ?= proxysql IMAGE := $(REGISTRY)/$(BIN) TAG ?= $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "")