-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (29 loc) · 1.26 KB
/
ci.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
name: CI for GHCR
on:
workflow_dispatch:
branches:
- 'main'
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and push Backend
run: |
cd backend
docker build -t ghcr.io/${{ github.repository }}-backend:latest .
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
docker push ghcr.io/${{ github.repository }}-backend:latest
- name: Build and push Frontend
run: |
cd frontend
docker build --build-arg VITE_FMP_API_URL=https://play.formal-methods.net/api -t ghcr.io/${{ github.repository }}-frontend:latest .
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
docker push ghcr.io/${{ github.repository }}-frontend:latest
- name: Build and push Alloy API
run: |
cd alloy-api
docker build -t ghcr.io/${{ github.repository }}-alloy-api:latest .
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
docker push ghcr.io/${{ github.repository }}-alloy-api:latest