forked from CapgeminiCIS/hackerkiste-hackathon-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 912 Bytes
/
wordpress.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
name: 'Stage 5 Wordpress'
on: [workflow_dispatch]
jobs:
container:
name: 'Container Build'
runs-on: ubuntu-latest
environment: production
env:
registryName: "hackerkisteregistry"
registryLoginServer: "hackerkisteregistry.azurecr.io"
defaults:
run:
shell: bash
#working-directory: ./container
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Set Environment
run: |
az aks get-credentials --resource-group ${{ secrets.UNIQUE_NAME }} --name ${{ secrets.UNIQUE_NAME }}
- name: Docker Login to Registry
run: |
az acr login --name ${{ env.registryName }}
- name: Deploy Manifests
run: |
kubectl apply -k ./stage_5_wordpress/