Skip to content

Commit 426ce2a

Browse files
authored
Publish to ghcr.io (#27)
Signed-off-by: Mehedi Hasan <[email protected]>
1 parent 0a06e26 commit 426ce2a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131
- name: Set up Docker Buildx
3232
uses: docker/setup-buildx-action@v1
3333

34-
- name: Login to DockerHub
35-
uses: docker/login-action@v1
34+
- name: Log in to the GitHub Container registry
35+
uses: docker/login-action@v2
3636
with:
37-
username: 1gtm
38-
password: ${{ secrets.DOCKERHUB_TOKEN }}
39-
37+
registry: ghcr.io
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
4040
- name: Run checks
4141
run: |
4242
make ci

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL=/bin/bash -o pipefail
22

3-
REGISTRY ?= kubedb
3+
REGISTRY ?= ghcr.io/kubedb
44
BIN ?= mysql-init
55
IMAGE := $(REGISTRY)/$(BIN)
66
TAG ?= $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "")
@@ -45,7 +45,7 @@ release:
4545

4646
.PHONY: version
4747
version:
48-
@echo ::set-output name=version::$(VERSION)
48+
@echo version=$(VERSION)
4949

5050
.PHONY: fmt
5151
fmt:

0 commit comments

Comments
 (0)