-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.17 KB
/
production.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
36
37
38
39
40
41
42
43
44
45
46
name: Production
on:
push:
branches: [ "master" ]
paths:
- 'src/**/**'
pull_request:
branches: [ "master" ]
paths:
- 'src/**/**'
workflow_dispatch:
jobs:
qa:
uses: ./.github/workflows/tests.yml
build:
needs: [ qa ]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.ARGON_GHCR_PAT }}
- name: Build and push api
uses: docker/build-push-action@v2
with:
context: .
file: ./src/Argon.Api/Dockerfile
push: true
tags: ghcr.io/argon-chat/orleans:${{ github.run_number }}
- name: Build and push contracts
uses: docker/build-push-action@v2
with:
context: .
file: ./src/Argon.Entry/Dockerfile
push: true
tags: ghcr.io/argon-chat/entry:${{ github.run_number }}