-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (34 loc) · 1.29 KB
/
docker-and-k8s.yml
File metadata and controls
36 lines (34 loc) · 1.29 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
name: Push server to Dockerhub and deploy to AKS
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to Docker
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- uses: actions/checkout@v2
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
tags: cfe84/rlay:${{ github.sha }}
# - name: Set AKS context
# uses: azure/aks-set-context@v1
# with:
# # create with `az ad sp create-for-rbac --sdk-auth --name DropDeploy`
# creds: '${{ secrets.AZURE_CREDENTIALS }}'
# cluster-name: ${{ secrets.AZURE_CLUSTER_NAME }}
# resource-group: ${{ secrets.AZURE_RESOURCE_GROUP }}
# - name: Deploy to kubernetes
# # TODO: Add environment variables using --set variable=${{ secrets.SMTP_HOST }}
# run: |
# helm template ./src/server/chart --set password="${{ secrets.RLAY_PASSWORD }}" --set imageVersion=${{ github.sha }} | kubectl apply -f -