Skip to content

Commit

Permalink
Update deploy-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch1024 authored Jun 3, 2024
1 parent f6068d5 commit e1ccb67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: 'docs/'
sparse-checkout-cone-mode: false

# Configure Workload Identity Federation and generate an access token.
- id: 'auth'
Expand Down Expand Up @@ -58,9 +61,6 @@ jobs:
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_REGION }}

- name: Change Working Directory
working-directory: ./docs

- name: Build and Push Docker Image
uses: docker/build-push-action@v2
Expand All @@ -69,7 +69,7 @@ jobs:
file: ./Dockerfile
push: true
tags: irisnet/docs:${{ github.sha }}

- name: Deploy to GKE
run: |
gcloud container clusters get-credentials app --region ${{ secrets.GKE_REGION }} --project ${{ secrets.GKE_PROJECT }}
Expand Down

0 comments on commit e1ccb67

Please sign in to comment.