This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
Use Micronaut backend #12
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- uses: s4u/maven-settings-action@64e42c454dbd42ef6370ac8539685755aedd205b | |
with: | |
servers: | | |
[{ | |
"id": "github-playground-micronaut", | |
"username": "epsilonlabs", | |
"password": "${{ secrets.GH_TOKEN_READ_MICRONAUT }}" | |
}] | |
- name: Download the backend JAR | |
run: mvn -B dependency:copy-dependencies -DexcludeTransitive=true && ls target/dependency | |
- name: Build the Docker image | |
run: docker build --tag playground-docker:micronaut . |