forked from CapgeminiCIS/hackerkiste-hackathon-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.19 KB
/
single_container.yml
File metadata and controls
46 lines (35 loc) · 1.19 KB
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
41
42
43
44
45
46
name: 'Stage 3 Single Container'
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 }}
# Build Old NGINX Frontend
- name: Build NGINX Base Frontend
run: docker build -t ${{ env.registryLoginServer }}/nginx:latest ./stage_3_SingleContainer
- name: Push NGINX Base Frontend
run: docker push ${{ env.registryLoginServer }}/nginx:latest
- name: Deploy Manifests
run: |
kubectl apply -f ./stage_3_SingleContainer/