Skip to content

add logging #10

add logging

add logging #10

Workflow file for this run

name: Build JARs and docker containers
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
- name: Build JAR
run: ./mvnw package
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker registry
uses: docker/#-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker container
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: intesys/twelve-factor-app-kotlin:latest
- name: Upload JAR artifact
uses: actions/upload-artifact@v2
with:
name: twelve-factor-demo.jar
path: target/twelve-factor-demo.jar