use specific java17 image (#113) #277
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: build | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
outputs: | |
app-version: ${{ steps.app-version.outputs.version }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: fix git tags | |
run: | | |
# https://github.com/actions/checkout/issues/290 | |
git fetch --tags --force | |
- uses: brpaz/[email protected] | |
- name: Setup java | |
uses: evryfs/[email protected] | |
with: | |
java-version: 17 | |
cache: true | |
- name: Login to QUAY | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- name: Run build | |
run: mvn clean deploy -Ddocker.registry=quay.io | |
- name: export version | |
id: app-version | |
run: echo "::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Install kind | |
uses: helm/[email protected] | |
with: | |
node_image: "kindest/node:v1.23.0" | |
- name: install image | |
run: | | |
helm install test spring-boot-admin --wait --repo https://evryfs.github.io/helm-charts/ --set image.tag=${{ needs.build.outputs.app-version }} |