deployment on branch develop #39
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 and Publish | |
# TODO Remove develop | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
build: | |
name: 'Build, upload docker containers and deploy' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Angular install | |
run: npm --prefix ./website install ./website | |
- name: Angular build | |
run: npm run --prefix website build-production | |
# - name: Generate Javadoc | |
# run: mvn javadoc:aggregate | |
- name: Maven package | |
# Windows: ./mvnw compile jib:build "-DdockerHub.username=${{secrets.DOCKER_USERNAME}}" "-DdockerHub.password=${{secrets.DOCKER_PASSWORD}}" | |
run: mvn package -DdockerHub.username=${{secrets.DOCKER_USERNAME}} -DdockerHub.password=${{secrets.DOCKER_PASSWORD}} |