Skip to content

Commit

Permalink
server.yaml aktualisieren
Browse files Browse the repository at this point in the history
  • Loading branch information
xleonplayz authored Nov 2, 2024
1 parent 52df61d commit c5914fb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@ jobs:
with:
version: 'latest'
service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: YOUR_PROJECT_ID # Set your project ID here
project_id: ${{ secrets.G_PID }} # Nutzt das Secret G_PID

- name: Authenticate with Service Account
run: |
gcloud auth activate-service-account --key-file="${{ secrets.GCP_SA_KEY }}"
gcloud config set project "${{ secrets.G_PID }}"
- name: Start VM
run: gcloud compute instances start BIG_NAME --zone ZONE_NAME

- name: Verify VM Status
run: gcloud compute instances describe BIG_NAME --zone ZONE_NAME --format="get(status)"

- name: SSH into VM and Create Folder
env:
BIG_IP: BIG_IP
Expand All @@ -30,4 +38,4 @@ jobs:
shell: bash

- name: Stop VM
run: gcloud compute instances stop BIG_NAME --zone ZONE_NAME
run: gcloud compute instances stop BIG_NAME --zone ZONE_NAME

0 comments on commit c5914fb

Please sign in to comment.