Skip to content

Commit

Permalink
ci: move to ghcr.io and use GITHUB_TOKEN for registry auth (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanschneeweiss authored Jan 22, 2024
1 parent 23d5174 commit a4ac30e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
make all
- name: generate changelog from git
run: |
echo "Image is available at \`docker.pkg.github.com/mercedes-benz/kosmoo/kosmoo:$(git describe --tags --exact-match)\`." > ${{ github.workflow }}-CHANGELOG.txt
echo "Image is available at \`ghcr.io/mercedes-benz/kosmoo/kosmoo:$(git describe --tags --exact-match)\`." > ${{ github.workflow }}-CHANGELOG.txt
git log --format=format:"* %h %s" $(git describe --tags --abbrev=0 @^)..@ >> ${{ github.workflow }}-CHANGELOG.txt
- name: push to package registry
run: |
docker login docker.pkg.github.com -u chrischdi -p "${PACKAGE_REPO_TOKEN}"
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
make push
env:
PACKAGE_REPO_TOKEN: ${{ secrets.PACKAGE_REPO_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ VERSION ?= $(shell git describe --tags --exact-match || \

SRCS = $(shell find . -type f -name '*.go' -not -path "./vendor/*")

REGISTRY ?= docker.pkg.github.com/mercedes-benz/kosmoo
REGISTRY ?= ghcr.io/mercedes-benz/kosmoo

all: test build docker

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
- args:
- -refresh-interval=300
- -cloud-conf=/etc/cloud.conf
image: docker.pkg.github.com/mercedes-benz/kosmoo/kosmoo:latest
image: ghcr.io/mercedes-benz/kosmoo/kosmoo:latest
imagePullPolicy: Always
name: exporter
ports:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/overlays/examples/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ kind: Kustomization
bases:
- ../../base
images:
- name: docker.pkg.github.com/mercedes-benz/kosmoo/kosmoo
- name: ghcr.io/mercedes-benz/kosmoo/kosmoo
newName: other/kosmoo
newTag: new

0 comments on commit a4ac30e

Please sign in to comment.