diff --git a/.github/workflows/build-push-gcr.yaml b/.github/workflows/build-push-gcr.yaml deleted file mode 100644 index 072f16d..0000000 --- a/.github/workflows/build-push-gcr.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Build & Publish Image to GCR - -on: - push: - branches: - - non-existing-branch - -env: - PROJECT_ID: hackathon-297608 - GCR_LOCATION: eu.gcr.io - IMAGE_NAME: ${{ github.repository }} - GITHUB_SHA: ${{ github.sha }} - -jobs: - gcloud-install-build-push-GCR: - name: Add gcloud, Build & Publish - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Google Authentication - uses: google-github-actions/auth@v0.8.0 - with: - credentials_json: ${{ secrets.GCR_SERVICE_ACCOUNT_KEY }} - - - name: Setup gcloud cli - uses: google-github-actions/setup-gcloud@v0.6.0 - with: - version: '391.0.0' - - - name: Build & Publish - working-directory: iris - run: | - gcloud auth configure-docker - export TAG=${GCR_LOCATION}/${PROJECT_ID}/$(echo ${IMAGE_NAME,,} | tr '/' '-'):${GITHUB_SHA} - docker build --tag ${TAG} . - docker push ${TAG} - diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 356a3d8..9d08c84 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -14,7 +14,6 @@ on: env: PROJECT_ID: iris-community-demos SERVICE_ACCOUNT_KEY: ${{ secrets.SERVICE_ACCOUNT_KEY }} - GOOGLE_CREDENTIALS: ${{ secrets.TF_SERVICE_ACCOUNT_KEY }} GITHUB_SHA: ${{ github.sha }} GCR_LOCATION: eu.gcr.io IMAGE_NAME: dc-analytics-image @@ -55,49 +54,10 @@ jobs: run: | docker push ${REGION}-docker.pkg.dev/${PROJECT_ID}/community/${IMAGE_NAME}:${GITHUB_SHA} - # gke-provisioner: - # # Inspired by: - # ## https://www.terraform.io/docs/github-actions/getting-started.html - # ## https://github.com/hashicorp/terraform-github-actions - # name: Provision GKE cluster - # runs-on: ubuntu-20.04 - # steps: - # - name: Checkout - # uses: actions/checkout@v3 - - # - name: Terraform init - # uses: hashicorp/terraform-github-actions@master - # with: - # tf_actions_version: 0.12.17 - # tf_actions_subcommand: 'init' - # tf_actions_working_dir: 'terraform' - - # - name: Terraform validate - # uses: hashicorp/terraform-github-actions@master - # with: - # tf_actions_version: 0.12.17 - # tf_actions_subcommand: 'validate' - # tf_actions_working_dir: 'terraform' - - # - name: Terraform plan - # uses: hashicorp/terraform-github-actions@master - # with: - # tf_actions_version: 0.12.17 - # tf_actions_subcommand: 'plan' - # tf_actions_working_dir: 'terraform' - - # - name: Terraform apply - # uses: hashicorp/terraform-github-actions@master - # with: - # tf_actions_version: 0.12.17 - # tf_actions_subcommand: 'apply' - # tf_actions_working_dir: 'terraform' - kubernetes-deploy: name: Deploy Kubernetes manifests to GKE cluster needs: - gcloud-setup-and-build-and-publish-to-GCR - # - gke-provisioner runs-on: ubuntu-22.04 steps: - name: Checkout