[Snyk] Fix for 22 vulnerabilities #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |