fix(ci): use lowercase ghcr image names
This commit is contained in:
parent
8188072b08
commit
be6c238691
1 changed files with 3 additions and 3 deletions
6
.github/workflows/build-and-deploy-ghcr.yml
vendored
6
.github/workflows/build-and-deploy-ghcr.yml
vendored
|
|
@ -99,7 +99,7 @@ print(json.dumps(services))
|
|||
fail-fast: false
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
service: ${{ fromJson(needs.detect-changes.outputs.services) }}
|
||||
service: ${{ fromJSON(needs.detect-changes.outputs.services) }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -126,7 +126,7 @@ print(json.dumps(services))
|
|||
platforms: linux/amd64
|
||||
build-args: |
|
||||
SERVICE_NAME=${{ matrix.service }}
|
||||
tags: ghcr.io/${{ github.repository_owner }}/nxtgauge-rust-${{ matrix.service }}:${{ github.sha }}
|
||||
tags: ghcr.io/traceworks2023/nxtgauge-rust-${{ matrix.service }}:${{ github.sha }}
|
||||
|
||||
- name: Configure kubeconfig
|
||||
run: |
|
||||
|
|
@ -146,7 +146,7 @@ print(json.dumps(services))
|
|||
set -euo pipefail
|
||||
deployment="nxtgauge-rust-${{ matrix.service }}"
|
||||
container="${{ matrix.service }}"
|
||||
image_ref="ghcr.io/${{ github.repository_owner }}/nxtgauge-rust-${{ matrix.service }}@${{ steps.build.outputs.digest }}"
|
||||
image_ref="ghcr.io/traceworks2023/nxtgauge-rust-${{ matrix.service }}@${{ steps.build.outputs.digest }}"
|
||||
kubectl -n "$K8S_NAMESPACE" create secret docker-registry ghcr-regcred --docker-server=ghcr.io --docker-username="$GHCR_USERNAME" --docker-password="$GHCR_TOKEN" --dry-run=client -o yaml | kubectl apply -f -
|
||||
kubectl -n "$K8S_NAMESPACE" patch deployment "$deployment" --type merge -p '{"spec":{"template":{"spec":{"imagePullSecrets":[{"name":"ghcr-regcred"}]}}}}'
|
||||
kubectl -n "$K8S_NAMESPACE" set image deployment/"$deployment" "$container"="$image_ref"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue