Skip to content

Merge pull request #102 from sinfo/feature/company-infos #27

Merge pull request #102 from sinfo/feature/company-infos

Merge pull request #102 from sinfo/feature/company-infos #27

Workflow file for this run

name: Staging Build Workflow
on:
push:
branches:
- "staging"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
name: Login to DockerHub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2.7.0
name: Build and Push Backend Image
id: docker_build
with:
push: true
tags: orgsinfo/corlief-frontend:latest
file: ./Dockerfile_staging
- name: Corlief Backend Image Digest
run: echo ${{ steps.docker_build.outputs.digest }}
deploy:
needs: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy the backend to the cluster
uses: nickgronow/kubectl@master
with:
config_data: ${{ secrets.KUBE_CONFIG_DATA }}
args: delete pod --selector="app=corlief-frontend-staging-app" --namespace=staging