From f99699040ca4406252fd59c7aff82a0e3717e23a Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Tue, 4 Apr 2023 10:01:44 -0700 Subject: [PATCH] Publish to ghcr.io Signed-off-by: Tamal Saha --- .github/workflows/release.yml | 9 +++++---- Makefile | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9405256..28c1eaa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,11 +30,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 dfbf13c..791a6e7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL=/bin/bash -o pipefail -REGISTRY ?= kubedb +REGISTRY ?= ghcr.io/kubedb BIN ?= mongodb-init IMAGE := $(REGISTRY)/$(BIN) TAG ?= $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "") @@ -45,7 +45,7 @@ release: .PHONY: version version: - @echo ::set-output name=version::$(VERSION) + @echo version=$(VERSION) .PHONY: fmt fmt: