diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index cd0f2f8..8317fa8 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -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 }} diff --git a/Makefile b/Makefile index ea80ac9..ef421e4 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/kubernetes/base/deployment.yaml b/kubernetes/base/deployment.yaml index 8868d7b..acb8967 100644 --- a/kubernetes/base/deployment.yaml +++ b/kubernetes/base/deployment.yaml @@ -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: diff --git a/kubernetes/overlays/examples/kustomization.yaml b/kubernetes/overlays/examples/kustomization.yaml index 76daf8f..2f76342 100644 --- a/kubernetes/overlays/examples/kustomization.yaml +++ b/kubernetes/overlays/examples/kustomization.yaml @@ -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 \ No newline at end of file