Skip to content

Merge pull request #1 from KimheangKen/snyk-fix-b6baa0938ed19b4e7e99b… #13

Merge pull request #1 from KimheangKen/snyk-fix-b6baa0938ed19b4e7e99b…

Merge pull request #1 from KimheangKen/snyk-fix-b6baa0938ed19b4e7e99b… #13

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 }}