Skip to content

Commit

Permalink
chore(deploy-app.yaml): remove redundant debug statements and comment…
Browse files Browse the repository at this point in the history
…ed code

The commit removes unnecessary debug statements that were used to check the environment setup in the GitHub Actions workflow. It also cleans up commented-out code related to kubectl export, streamlining the workflow file and improving readability. This change helps maintain a clean and efficient CI/CD pipeline configuration.
  • Loading branch information
cybersiddhu committed Jun 27, 2024
1 parent 403217d commit f953ef5
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/deploy-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,27 +103,13 @@ jobs:
output=$(dagger call -m $IMAGE_MODULE with-image --image=${{ inputs.image }} with-ref --ref=${{ inputs.ref }} with-dockerfile --docker-file=${{ inputs.dockerfile }} with-namespace --namespace=${{ inputs.namespace }} with-repository --repository=${{ format('https://github.com/{0}',inputs.repository) }} publish-from-repo --user=${{ secrets.DOCKERHUB_USER }} --password=${{ secrets.DOCKER_PASS }})
echo "image=${output}" >> $GITHUB_OUTPUT
- name: check for stuffs v1
run: |
ls -l $DAGGER_BIN_PATH/
ls -l $ACTION_BIN_PATH/
echo $GITHUB_PATH
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
id: gcp_authentication
with:
project_id: ${{ secrets.PROJECT_ID }}
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}

# - name: export kubectl
# run: |
# $DAGGER_BIN_PATH/dagger call -m $KOPS_MODULE with-kops with-kubectl with-cluster --name=${{ inputs.cluster }} --credentials=${{ steps.gcp_authentication.outputs.credentials_file_path }} --storage=${{ inputs.cluster_state_storage }} export-kubectl --output=$KUBECTL_CONFIG

- name: check for stuffs v2
- name: export kubectl
run: |
ls -l $DAGGER_BIN_PATH/
ls -l $ACTION_BIN_PATH/
echo $GITHUB_PATH

dagger call -m $KOPS_MODULE with-kops with-kubectl with-cluster --name=${{ inputs.cluster }} --credentials=${{ steps.gcp_authentication.outputs.credentials_file_path }} --storage=${{ inputs.cluster_state_storage }} export-kubectl --output=$KUBECTL_CONFIG

0 comments on commit f953ef5

Please sign in to comment.