-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 871 Bytes
/
deploy.yml
File metadata and controls
32 lines (30 loc) · 871 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
name: Docker Image CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set image name
run: |
echo ""
echo "IMAGE=ghcr.io/kulycloud/api-server:$(date +%s)" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: ghcr.io/kulycloud
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ env.IMAGE }}
- name: Deploy
uses: WyriHaximus/github-action-helm3@v2
with:
exec: helm upgrade api-server ./ci/helm/ --install --wait --atomic --set=image=${{ env.IMAGE }}
kubeconfig: '${{ secrets.KUBECONFIG }}'