diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ace6bbf..72cd7f8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -65,10 +65,7 @@ jobs: # cat kustomization.yaml - name: Update Kubernetes resources run: | - cd cd-msa-django-ansible/overlays/dev/ - - echo "✅ Updating image tag..." - kustomize edit set image harbor.icurfer.com/msa-demo/msa-django-ansible:${{ steps.img-ver.outputs.content }} + cd cd-msa-django-ansible/overlays/dev/ echo "✅ Installing yq..." wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_amd64 @@ -76,7 +73,7 @@ jobs: echo "✅ Updating container name in patch-deployment.yaml..." VERSION="${{ steps.img-ver.outputs.content }}" - VERSION_SAFE=$(echo "$VERSION" | tr '.' '-') + VERSION_SAFE=$(echo "$VERSION" | tr '.' 'd') yq e -i ".spec.template.spec.containers[0].name = \"msa-django-ansible-${VERSION_SAFE}\"" patch-deployment.yaml @@ -84,6 +81,8 @@ jobs: cat patch-deployment.yaml echo "✅ Final kustomization.yaml content:" + echo "✅ Updating image tag..." + kustomize edit set image harbor.icurfer.com/msa-demo/msa-django-ansible:${{ steps.img-ver.outputs.content }} cat kustomization.yaml diff --git a/version b/version index 254a9f2..04eddb2 100644 --- a/version +++ b/version @@ -1 +1 @@ -v0.0.6 \ No newline at end of file +v0.0.7 \ No newline at end of file