Skip to content

Increase cluster points limit #288

Increase cluster points limit

Increase cluster points limit #288

name: "🚚 Backend auto-deployment"
on:
push:
branches:
- main
paths:
- "apps/backend/**"
- "packages/**"
- "!packages/scripts/**"
- ".github/workflows/backend-deploy.yml"
jobs:
build:
name: "🐳 Build"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
push: true
context: .
platforms: linux/amd64
file: .deploy/backend.dockerfile
tags: ghcr.io/itklubbozolagan/kontestis-backend:latest
release:
name: "🚚 Release"
runs-on: ubuntu-latest
needs: [ "build" ]
steps:
- name: "Set up kubectl"
uses: azure/setup-kubectl@v3
- name: "Copy kubernetes config"
run: "mkdir ~/.kube && echo '${{ secrets.KUBE_CONFIG }}' | base64 -d > ~/.kube/config && KUBECONFIG=~/.kube/config"
- name: "Rollout an application update"
run: "kubectl rollout restart deployment kontestis -n kontestis"