diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index f19dfb86..a3d08196 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -63,9 +63,10 @@ jobs: # Check if namespace exists, if not create it kubectl get namespace $ENVIRONMENT || kubectl create namespace $ENVIRONMENT - kustomize edit set image web=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_VERSION + kustomize edit set image web=$ECR_REGISTRY/$ECR_REPOSITORY:${{ env.image-version }} echo "Deploying resource in $ENVIRONMENT namespace." - echo "Using image version: $IMAGE_VERSION" + echo "Using image version: ${{ env.image-version }}" + echo "Fully qualified image name: $ECR_REGISTRY/$ECR_REPOSITORY:${{ env.image-version }}" kubectl apply -k $KUSTOMIZE_DIR -n $ENVIRONMENT && echo "Resources deployed successfully!" || { echo "Failed to deploy resources! Check the logs"; kubectl describe pods -n $ENVIRONMENT; exit 1; } \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f9dbcb7..51593951 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,15 +83,15 @@ jobs: echo "Version $NEW_VERSION already exists in CHANGELOG.md. Skipping update." fi - # - name: Commit and push updated version in CHANGELOG.md - # env: - # NEW_VERSION: ${{ steps.semver-tag.outputs.semver_tag }} - # run: | - # git config user.name "github-actions[bot]" - # git config user.email "github-actions[bot]@users.noreply.github.com" - # git add CHANGELOG.md VERSION - # git commit -m "ci: bump version to ${{ env.NEW_VERSION }}" - # git push origin ${{ github.ref }} + - name: Commit and push updated version in CHANGELOG.md + env: + NEW_VERSION: ${{ steps.semver-tag.outputs.semver_tag }} + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add CHANGELOG.md VERSION + git commit -m "ci: bump version to ${{ env.NEW_VERSION }}" + git push origin ${{ github.ref }} - name: Setup Kubeconfig run: aws eks --region $AWS_REGION update-kubeconfig --name $EKS_CLUSTER_NAME