feat(teammanagementlastactivity): added new endpoint for testing (#1525) #626
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |