Skip to content

feat: upgrade dockerfile jdk to 21 #158

feat: upgrade dockerfile jdk to 21

feat: upgrade dockerfile jdk to 21 #158

Workflow file for this run

name: build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v3
- name: 'Set up JDK'
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: 'Grant execute permission for gradlew'
run: chmod +x gradlew
- name: 'Build with Gradle'
run: ./gradlew build --no-daemon
docker-build:
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v3
- name: Build Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
build-args: |
APP_VERSION=${{github.ref_name}}
tags: eduardoferro/capivara:${{ github.sha }}
push: false