diff --git a/.github/workflows/deploy-applicationset.yaml b/.github/workflows/deploy-applicationset.yaml index 74dd2ed..a8902f5 100644 --- a/.github/workflows/deploy-applicationset.yaml +++ b/.github/workflows/deploy-applicationset.yaml @@ -286,8 +286,7 @@ jobs: ( github.event_name == 'workflow_dispatch' || ( - github.event_name == 'push' && - github.ref == 'refs/heads/main' + github.event_name == 'push' && ( github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' ) ) ) @@ -383,8 +382,7 @@ jobs: ( github.event_name == 'workflow_dispatch' || ( - github.event_name == 'push' && - github.ref == 'refs/heads/main' + github.event_name == 'push' && ( github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' ) ) ) @@ -403,7 +401,6 @@ jobs: name: selected-applicationsets path: /tmp - - name: Configure Kubernetes for deployment env: KUBECONFIG_B64: ${{ secrets.KUBECONFIG_B64_DEPLOY }} @@ -418,35 +415,40 @@ jobs: chmod 600 ~/.kube/config + # - name: Verify Kubernetes connection + # run: | - - name: Verify Kubernetes connection - run: | - - kubectl cluster-info - - echo - kubectl config current-context + # kubectl cluster-info + # echo + # kubectl config current-context - - name: Deploy ApplicationSets - shell: bash - run: | + # - name: Deploy ApplicationSets + # shell: bash + # run: | - while read -r file; do + # while read -r file; do - [ -z "$file" ] && continue + # [ -z "$file" ] && continue - echo - echo "==========================================" - echo "Deploying: $file" - echo "==========================================" + # echo + # echo "==========================================" + # echo "Deploying: $file" + # echo "==========================================" - kubectl apply \ - -f "$file" + # kubectl apply \ + # -f "$file" - done < /tmp/appset-files.txt + # done < /tmp/appset-files.txt + # - name: Show ApplicationSets + # run: | + # kubectl get applicationsets -A - - name: Show ApplicationSets + - name: Show Message + shell: bash run: | - kubectl get applicationsets -A \ No newline at end of file + echo + echo "==========================================" + echo "Deploying ApplicationSet" + echo "=========================================="