refac: add postgres confs #2
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 and Deploy Quarkus Application - JVM | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Starting Build and Deploy Quarkus Application" | |
name: Checkout Repository | |
- uses: actions/checkout@v4 | |
- run: echo "Setting up Java" | |
name: Set up Java | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Build Quarkus Application | |
run: | | |
./gradlew build | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Docker Image and Push to Docker Hub | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./src/main/docker/Dockerfile.jvm | |
push: true | |
tags: mateuxlucax/rinha-de-backend-2024-q1-kotlin:jvm |