diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 1ca163b..3c247d9 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -236,6 +236,15 @@ jobs: kubectl create namespace "${{ matrix.namespace }}" \ --dry-run=client -o yaml | kubectl apply -f - + - name: Ensure JFrog pull secret exists + run: | + kubectl create secret docker-registry jfrog-registry-creds \ + --docker-server="$(echo "${JFROG_REGISTRY}" | cut -d'/' -f1)" \ + --docker-username="${{ secrets.JFROG_USERNAME }}" \ + --docker-password="${{ secrets.JFROG_IDENTITY_TOKEN }}" \ + --namespace "${{ matrix.namespace }}" \ + --dry-run=client -o yaml | kubectl apply -f - + # ---- DEV DEPLOY (branch dev only) ---- # Deployed by commit SHA, not latest-dev: an immutable tag sidesteps the # moving-tag + IfNotPresent stale-cache trap and makes `kubectl describe