Skip to content

#120 - Upgraded into Spring Boot 3.1.9 version βœοΈπŸ“— :octocat:⬆ #87

#120 - Upgraded into Spring Boot 3.1.9 version βœοΈπŸ“— :octocat:⬆

#120 - Upgraded into Spring Boot 3.1.9 version βœοΈπŸ“— :octocat:⬆ #87

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: AdminLTE3
env:
MYSQL_DATABASE: lte
MYSQL_USER: root
MYSQL_PASSWORD: 'root'
MYSQL_HOST: localhost
NODE_ENV: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
# services:
# mysql8:
# image: mysql
# ports:
# - 3306/tcp
# env:
# MYSQL_DATABASE: ${{ env.MYSQL_DATABASE }}
# MYSQL_USER: ${{ env.MYSQL_USER }}
# MYSQL_PASSWORD: ${{ env.MYSQL_PASSWORD }}
# MYSQL_ROOT_PASSWORD: ${{ env.MYSQL_PASSWORD }}
# MYSQL_ALLOW_EMPTY_PASSWORD: yes
# options: >-
# --name=mysql8
# --health-cmd="mysqladmin ping"
# --health-interval=10s
# --health-timeout=5s
# --health-retries=3
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE lte;' -uroot -proot
mysql -e 'SHOW DATABASES;' -uroot -proot
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Maven Install
run: mvn clean install
- name: Build & push Docker image
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: hendisantika/adminlte3
tags: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}