Skip to content

Add priority class to deployment yaml #138

Add priority class to deployment yaml

Add priority class to deployment yaml #138

Workflow file for this run

name: controller
on:
- push
- pull_request
jobs:
test-suite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "^1.17"
- name: Run tests
run: go test ./...
- name: Run vetting/linting checks
run: go vet ./...
build:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: test-suite
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push (docker)
uses: docker/build-push-action@v2
with:
file: Dockerfile
push: true
build-args: |
VERSION=${{ steps.tag.outputs.tag }}
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 }}