Skip to content

Ajuste deploy

Ajuste deploy #6

Workflow file for this run

name: Check app Tiu Lanches
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 21
uses: actions/[email protected]
with:
java-version: '21'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Maven
run: mvn clean package
- name: Upload Artifact
uses: actions/[email protected]
with:
name: github-actions-artifact
path: target
create-image:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download a Build Artifact
uses: actions/[email protected]
with:
name: github-actions-artifact
- name: Checkout
uses: actions/[email protected]
- name: Docker Setup QEMU
uses: docker/[email protected]
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
push: true
tags: luisferrarezi/tiulanches:latest