-
Notifications
You must be signed in to change notification settings - Fork 19
35 lines (32 loc) · 1.04 KB
/
cd-sb.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
name: CD - SB
on:
push:
branches:
- master
- candidate
paths:
- "src/Servers/ServerBrowser/src/**"
- "src/Libraries/Core/src/**"
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy to staging
if: github.event_name == 'push' && github.ref == 'refs/heads/candidate'
uses: elgohr/[email protected]
with:
name: gameprogressive/sb
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_KEY }}
tagging: true
dockerfile: ./src/Servers/ServerBrowser/src/Dockerfile
- name: Deploy to production
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: elgohr/[email protected]
with:
name: gameprogressive/sb
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_KEY }}
tagging: true
dockerfile: ./src/Servers/ServerBrowser/src/Dockerfile