-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 1008 Bytes
/
deploy.yml
File metadata and controls
38 lines (35 loc) · 1008 Bytes
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
name: Build and Deploy
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish to GitHub Registry
uses: velddev/gp-docker-action@v0.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: imghoard
image-tag: ${{ github.run_id }}
dockerfile-path: Dockerfile
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: Azure/k8s-set-context@v1
with:
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Deploy to Kubernetes cluster
uses: Azure/k8s-deploy@v1.2
with:
namespace: imghoard
imagepullsecrets: |
github-pull-secret
manifests: |
manifests/deployment.yml
manifests/service.yml
manifests/ingress.yml
images: ghcr.io/veldtech/imghoard/imghoard:${{ github.run_id }}