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 "")