-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.17 KB
/
review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build & Review
on: [pull_request]
env:
CONTAINER_REGISTRY: ghcr.io
CONTAINER_REGISTRY_USER: ${{ secrets.GHCR_CONTAINER_REGISTRY_USER }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
CONTAINER_REGISTRY_REPO: ghcr.io/city-of-helsinki/${{ github.event.repository.name }}
REPO_NAME: ${{ github.event.repository.name }}
KUBECONFIG_RAW: ${{ secrets.KUBECONFIG_RAW }}
BUILD_ARTIFACT_FOLDER: 'build_artifacts'
SERVICE_ARTIFACT_FOLDER: 'service_artifacts'
BASE_DOMAIN: ${{ secrets.BASE_DOMAIN_STAGING }}
SERVICE_PORT: 3000
K8S_SECRET_PORT: 3000
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- name: Build
uses: andersinno/kolga-build-action@v2
env:
DOCKER_IMAGE_NAME: ${{ env.REPO_NAME }}-review
review:
runs-on: ubuntu-latest
needs: build
name: Review
steps:
- uses: actions/checkout@v2
- uses: andersinno/kolga-setup-action@v2
- name: Deploy
uses: andersinno/kolga-deploy-action@v2
env:
ENVIRONMENT_URL: https://${{ env.K8S_NAMESPACE }}.${{ env.BASE_DOMAIN }}
DOCKER_IMAGE_NAME: ${{ env.REPO_NAME }}-review