From 52d02377229e821c5d0eb239b388da0acf277639 Mon Sep 17 00:00:00 2001 From: Ingo Gottwald Date: Fri, 4 Apr 2025 17:07:15 +0200 Subject: [PATCH] Move image to ghcr --- .github/workflows/release.yaml | 11 ++++------- k8s/daemonset.yaml | 2 +- k8s/deployment.yaml | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9bf6862..88c6c43 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,7 +1,7 @@ name: release env: - DOCKER_USER: ${{ secrets.DockerHubUser }} + GITHUB_TOKEN: ${{ secrets.GHCRTOKEN }} on: push: @@ -14,15 +14,12 @@ jobs: steps: - name: checkout - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 with: fetch-depth: 1 - name: build image - run: docker build --platform linux/amd64 -t digitalocean/doks-debug:latest . - - - name: Log into container registry - run: echo "${{ secrets.DockerHubToken }}" | docker login --username ${DOCKER_USER} --password-stdin + run: docker build --platform linux/amd64 -t ghcr.io/digitalocean-packages/doks-debug:latest . - name: push image - run: docker push digitalocean/doks-debug:latest + run: docker push ghcr.io/digitalocean-packages/doks-debug:latest diff --git a/k8s/daemonset.yaml b/k8s/daemonset.yaml index 740c52f..55506ac 100644 --- a/k8s/daemonset.yaml +++ b/k8s/daemonset.yaml @@ -27,7 +27,7 @@ spec: - name: doks-debug securityContext: privileged: true - image: digitalocean/doks-debug:latest + image: ghcr.io/digitalocean-packages/doks-debug:latest command: [ "sleep", "infinity" ] resources: requests: diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 9454c45..18d0aca 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -28,7 +28,7 @@ spec: - name: doks-debug securityContext: privileged: true - image: digitalocean/doks-debug:latest + image: ghcr.io/digitalocean-packages/doks-debug:latest command: [ "sleep", "infinity" ] resources: requests: