Skip to content

Commit

Permalink
Publish to ghcr.io
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Apr 4, 2023
1 parent a99bbe4 commit 3cf6bdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- 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: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 "")
Expand Down Expand Up @@ -45,7 +45,7 @@ release:

.PHONY: version
version:
@echo ::set-output name=version::$(VERSION)
@echo version=$(VERSION)

.PHONY: fmt
fmt:
Expand Down

0 comments on commit 3cf6bdc

Please sign in to comment.