2021-10-20 14:51:32 +00:00
|
|
|
name: Build docker images
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-backend:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-20 14:52:22 +00:00
|
|
|
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
2021-10-20 14:51:32 +00:00
|
|
|
- run: docker build ./backend --tag ghcr.io/steffo99/sophon-backend:latest
|
|
|
|
- run: docker push ghcr.io/steffo99/sophon-backend:latest
|
|
|
|
build-frontend:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-20 14:53:01 +00:00
|
|
|
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
2021-10-20 14:51:32 +00:00
|
|
|
- run: docker build ./frontend --tag ghcr.io/steffo99/sophon-frontend:latest
|
|
|
|
- run: docker push ghcr.io/steffo99/sophon-frontend:latest
|
|
|
|
build-proxy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-20 14:53:01 +00:00
|
|
|
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
2021-10-20 14:51:32 +00:00
|
|
|
- run: docker build ./proxy --tag ghcr.io/steffo99/sophon-proxy:latest
|
|
|
|
- run: docker push ghcr.io/steffo99/sophon-proxy:latest
|