-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (46 loc) · 1.64 KB
/
tripletexweb.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
47
name: tripletexweb
on: [push]
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: '20.x'
- run: npm ci
working-directory: tripletexweb/frontend
- run: npm run typecheck
working-directory: tripletexweb/frontend
- run: npm run build
working-directory: tripletexweb/frontend
- run: docker build -t cybernetisk/okoreports-frontend .
working-directory: tripletexweb/frontend
- name: Push docker image to Docker Hub if master branch
if: github.ref == 'refs/heads/master'
run: |
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
docker push cybernetisk/okoreports-frontend
env:
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install -e ".[dev]"
working-directory: tripletex
- run: python setup.py bdist_wheel -d ..
working-directory: tripletex
- run: docker build -t cybernetisk/okoreports-backend -f tripletexweb/backend/Dockerfile .
- name: Push docker image to Docker Hub if master branch
if: github.ref == 'refs/heads/master'
run: |
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
docker push cybernetisk/okoreports-backend
env:
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}