Skip to content

Commit

Permalink
Publish to ghcr.io (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Shaad7 <[email protected]>
  • Loading branch information
AbdullahAlShaad authored Apr 5, 2023
1 parent 1fb25a7 commit 5a962b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to the GitHub Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build
env:
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
USERNAME: 1gtm
run: |
docker login --username ${USERNAME} --password ${DOCKER_TOKEN}
make push
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 := redis_exporter
IMAGE := $(REGISTRY)/$(BIN)
TAG := $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "")
Expand All @@ -18,4 +18,4 @@ container:

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

0 comments on commit 5a962b9

Please sign in to comment.