pass through keycloak config #1152
Workflow file for this run
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: CI Build | |
on: | |
push: | |
pull_request_target: | |
types: [labeled] | |
env: | |
NODE_VERSION: 16 | |
JAVA_VERSION: 17 | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" # can the if also be est for all jobs? | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'npm' | |
cache-dependency-path: frontend/package-lock.json | |
- name: Install npm dependencies | |
working-directory: frontend | |
run: npm install | |
- name: Build and test frontend | |
working-directory: frontend | |
run: npm test | |
- name: Deploy frontend | |
working-directory: frontend | |
run: npm run dist | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ env.JAVA_VERSION }} | |
cache: 'maven' | |
- name: Build and test backend | |
working-directory: backend | |
run: mvn -B clean verify | |
- id: get_tag | |
if: startsWith(github.ref, 'refs/tags/') | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Build and push container image | |
if: startsWith(github.ref, 'refs/tags/') | |
working-directory: backend | |
run: mvn -B clean package -DskipTests | |
env: | |
QUARKUS_APPLICATION_VERSION: ${{ steps.get_tag.outputs.VERSION }} | |
QUARKUS_JIB_PLATFORMS: linux/amd64,linux/arm64/v8 | |
QUARKUS_CONTAINER_IMAGE_ADDITIONAL_TAGS: latest | |
QUARKUS_CONTAINER_IMAGE_BUILD: true | |
QUARKUS_CONTAINER_IMAGE_PUSH: true | |
QUARKUS_CONTAINER_IMAGE_REGISTRY: ghcr.io | |
QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ github.actor }} | |
QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} |