mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-21 22:34:21 +00:00
Try some automation
This commit is contained in:
parent
b44f7b4ebf
commit
2e9b0474fb
1 changed files with 30 additions and 0 deletions
30
.github/workflows/build-docker-images.yml
vendored
Normal file
30
.github/workflows/build-docker-images.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Build docker images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build-backend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: echo ${{ GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
||||
- 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
|
||||
- run: echo ${{ GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
||||
- 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
|
||||
- run: echo ${{ GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
||||
- run: docker build ./proxy --tag ghcr.io/steffo99/sophon-proxy:latest
|
||||
- run: docker push ghcr.io/steffo99/sophon-proxy:latest
|
Loading…
Reference in a new issue