Skip to content

chore: add hosts for service-catalog and service-catalog-frontend #35

chore: add hosts for service-catalog and service-catalog-frontend

chore: add hosts for service-catalog and service-catalog-frontend #35

Workflow file for this run

name: Deploy to production (ipv4 & ipv6)
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-production-ipv4:
name: Deploy ingress(ipv4) to production environment on merge to main branch
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create yaml file from secret
id: write_file
uses: timheuer/base64-to-file@v1
with:
fileName: 'secret.yaml'
encodedString: ${{ secrets.DIGDIR_FDK_INGRESS_PROD_IPV4 }}
- name: Apply Helm template
run: |
helm template -f ${{ steps.write_file.outputs.filePath }} \
./helm-sources/ > ./kubectlapply.yaml
chmod o+w ./kubectlapply.yaml
cat kubectlapply.yaml
- name: Auth gcloud CLI for deploy
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.DIGDIR_FDK_PROD_AUTODEPLOY }}
- name: Get credentials
uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: digdir-fdk-prod
location: europe-north1-a
- name: Deploy to GCP & check status
run: |
kubectl apply -f ./kubectlapply.yaml --force
- name: Notify slack
uses: 8398a7/action-slack@v3
with:
mention: 'channel'
if_mention: failure
status: ${{ job.status }}
author_name: 'Application: ingress(ipv4) | Environment: prod'
fields: commit,author,workflow,message
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()
deploy-production-ipv6:
name: Deploy ingress(ipv6) to prod environment on merge to main branch
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create yaml file from secret
id: write_file
uses: timheuer/base64-to-file@v1
with:
fileName: 'secret.yaml'
encodedString: ${{ secrets.DIGDIR_FDK_INGRESS_PROD_IPV6 }}
- name: Apply Helm template
run: |
helm template -f ${{ steps.write_file.outputs.filePath }} \
./helm-sources/ > ./kubectlapply.yaml
chmod o+w ./kubectlapply.yaml
cat kubectlapply.yaml
- name: Auth gcloud CLI for deploy
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.DIGDIR_FDK_PROD_AUTODEPLOY }}
- name: Get credentials
uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: digdir-fdk-prod
location: europe-north1-a
- name: Deploy to GCP & check status
run: |
kubectl apply -f ./kubectlapply.yaml --force
- name: Notify slack
uses: 8398a7/action-slack@v3
with:
mention: 'channel'
if_mention: failure
status: ${{ job.status }}
author_name: 'Application: ingress(ipv6) | Environment: prod'
fields: commit,author,workflow,message
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()