diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 78938c9..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Docker-CI/CD - -on: - push: - branches: - - main - - soc - pull_request: - branches: - - main - - soc -jobs: - deploy: - runs-on: ubuntu-latest - - env: - CI: false - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run Docker Compose - run: | - cp .env.example .env - docker-compose -f docker-compose.yml up -d - - - name: Authenticate to Google Cloud - uses: google-github-actions/auth@v2 - with: - credentials_json: ${{ secrets.GCP_SA_KEY }} - - - name: Set up gcloud CLI - uses: google-github-actions/auth@v2 - with: - credentials_json: ${{ secrets.GCP_SA_KEY }} - - - name: SSH into the VM - env: - GCP_INSTANCE_NAME: ${{ secrets.GCP_INSTANCE_NAME }} - GCP_ZONE: ${{ secrets.GCP_ZONE }} - REPO_URL: ${{ secrets.REPO_URL }} - run: | - gcloud compute ssh $GCP_INSTANCE_NAME --zone=$GCP_ZONE --command "git clone $REPO_URL" -