-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (75 loc) · 2.8 KB
/
docker push.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Create and publish all Docker images
on:
push:
branches: ["main"]
jobs:
build-yaki-backend-mobile:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and publish Yaki backend Docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username phanatic --password-stdin
cd yaki_backend
docker build -t yaki_backend .
docker tag yaki_backend ghcr.io/xpeho/yaki:backend-mobile-latest
docker push ghcr.io/xpeho/yaki:backend-mobile-latest
build-yaki-front-mobile:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.2"
channel: "stable"
- name: Install lcov
run: |
sudo apt update
sudo apt install lcov
- name: Build and publish Yaki frontend mobile Docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username phanatic --password-stdin
cd yaki_mobile
flutter pub get
dart format --set-exit-if-changed .
flutter analyze
flutter test
flutter build web --base-href "/ui/"
docker build -t yaki_mobile .
docker tag yaki_mobile ghcr.io/xpeho/yaki:frontend-mobile-latest
docker push ghcr.io/xpeho/yaki:frontend-mobile-latest
build-yaki-backend-admin:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: "17.x"
distribution: "temurin"
- name: Build and publish Yaki backend admin Docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username phanatic --password-stdin
cd yaki_admin_backend
echo ${{ secrets.APPLICATION_TEST_PROPERTIES }} | base64 -d > src/test/resources/application-test.properties
gradle clean build
docker build -t yaki_admin_backend .
docker tag yaki_admin_backend ghcr.io/xpeho/yaki:backend-admin-latest
docker push ghcr.io/xpeho/yaki:backend-admin-latest
build-yaki-frontend-admin:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
- name: Build and publish Yaki frontend admin Docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username phanatic --password-stdin
cd yaki_admin
docker build -t yaki_admin .
docker tag yaki_admin ghcr.io/xpeho/yaki:frontend-admin-latest
docker push ghcr.io/xpeho/yaki:frontend-admin-latest