Skip to content

Commit

Permalink
Build and push to GKE (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
DMajrekar authored Jun 30, 2023
1 parent 719200f commit 4e0f261
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 4e0f261

Please sign in to comment.