From 4e0f2615c11a5d4d509cd31d72bccbebf9f97c8c Mon Sep 17 00:00:00 2001 From: Dinesh Majrekar Date: Fri, 30 Jun 2023 13:52:28 +0100 Subject: [PATCH] Build and push to GKE (#17) --- .github/workflows/controller.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/controller.yml b/.github/workflows/controller.yml index ecf506c..2989156 100644 --- a/.github/workflows/controller.yml +++ b/.github/workflows/controller.yml @@ -8,7 +8,7 @@ jobs: test-suite: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-go@v2 with: go-version: "^1.17" @@ -22,7 +22,7 @@ jobs: needs: test-suite steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get tag id: tag uses: dawidd6/action-get-tag@v1 @@ -35,7 +35,7 @@ jobs: with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Build and push + - name: Build and push (docker) uses: docker/build-push-action@v2 with: file: Dockerfile @@ -45,3 +45,11 @@ jobs: tags: | civo/civo-cloud-controller-manager:${{ steps.tag.outputs.tag }} civo/civo-cloud-controller-manager:latest + - name: Build and push (Google Container Registry) + uses: RafikFarhad/push-to-gcr-github-action@v5-beta + with: + gcloud_service_key: ${{ secrets.GCLOUD_SERVICE_KEY }} + registry: gcr.io + project_id: consummate-yew-302509 + image_name: civo-cloud-controller-manager + image_tag: latest,${{ steps.tag.outputs.tag }}