Skip to content

Time to move a new branch #26

Time to move a new branch

Time to move a new branch #26

name: Build and deploy
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and deploy image
run: >
./gradlew jib --image=oscarcpozas/svc-kotlin-playground
-Djib.to.auth.username=${{ secrets.DOCKERHUB_USER }}
-Djib.to.auth.password=${{ secrets.DOCKERHUB_PWD }}