Skip to content

fs

fs #10

Workflow file for this run

name: CI/CD
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
# runs-on: ${{matrix.os}}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macOs-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Maven
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build Maven project
run: mvn clean package
- name: Build & push Docker image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: kimheang68/demo-spring
tags: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}