diff --git a/.github/workflows/cantdidnt.yaml b/.github/workflows/cantdidnt.yaml index be7b560c..9c992dbb 100644 --- a/.github/workflows/cantdidnt.yaml +++ b/.github/workflows/cantdidnt.yaml @@ -24,18 +24,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: 'Authenticate to Google Cloud' id: 'auth' - uses: 'google-github-actions/auth@v0' + uses: 'google-github-actions/auth@v1' with: credentials_json: '${{ secrets.GCP_CREDENTIALS }}' - - name: Docker configuration - run: |- - echo ${{steps.auth.outputs.access_token}} | docker login -u oauth2accesstoken --password-stdin https://gcr.io - + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v1' + - name: Set up GKE credentials uses: google-github-actions/get-gke-credentials@v0 with: @@ -50,15 +49,15 @@ jobs: run: |- docker push "gcr.io/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA" - - name: Set up Kustomize - run: |- - curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 - chmod u+x ./kustomize - - - name: Deploy image - run: |- - # replacing the image name in the k8s template - ./kustomize edit set image LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG=gcr.io/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA - ./kustomize build . | kubectl apply -f - - kubectl rollout status deployment/$DEPLOYMENT_NAME - kubectl get services -o wide \ No newline at end of file + # - name: Set up Kustomize + # run: |- + # curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 + # chmod u+x ./kustomize + # + # - name: Deploy image + # run: |- + # # replacing the image name in the k8s template + # ./kustomize edit set image LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG=gcr.io/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA + # ./kustomize build . | kubectl apply -f - + # kubectl rollout status deployment/$DEPLOYMENT_NAME + # kubectl get services -o wide \ No newline at end of file