Bump the angular group in /frontend with 13 updates #96
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: Build Main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_dockerimage: | |
name: Build dockerimage | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v4 | |
- name: ⛏ Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
- name: 🔐 Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: registry.cevi.tools | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: 🔐 Prepare Hitobito Token | |
run: 'echo "$HITOBITO_PROD_TOKEN" > hitobito_token' | |
working-directory: ./backend | |
env: | |
HITOBITO_PROD_TOKEN: ${{secrets.HITOBITO_PROD_TOKEN}} | |
- name: 🔐 Test Backend | |
run: APPLICATION_HITOBITO_API_TOKEN_FILE=hitobito_token ./mvnw verify | |
working-directory: ./backend | |
- name: 🔐 Test Frontend | |
working-directory: ./frontend | |
run: | | |
npm ci | |
npm run test:ci | |
- name: 🏗️ Build backend dockerimage | |
run: ./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=registry.cevi.tools/cevi/event-overview-backend:latest | |
working-directory: ./backend | |
- name: 🏗️ Build frontend prod dockerimage | |
run: docker build --build-arg build_configuration=prod --tag "registry.cevi.tools/cevi/event-overview-frontend-prod:latest" . | |
working-directory: ./frontend | |
- name: 🏗️ Build frontend int dockerimage | |
run: docker build --build-arg build_configuration=int --tag "registry.cevi.tools/cevi/event-overview-frontend-int:latest" . | |
working-directory: ./frontend | |
- name: 🚀 Push containers to registry | |
run: | | |
docker push registry.cevi.tools/cevi/event-overview-backend:latest | |
docker push registry.cevi.tools/cevi/event-overview-frontend-prod:latest | |
docker push registry.cevi.tools/cevi/event-overview-frontend-int:latest |