Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren4641 authored Dec 19, 2023
1 parent 8593a82 commit 2ea988c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: production application file setting
run: |
mkdir -p ./src/main/resources
touch ./src/main/resources/application.yml
echo ${{ secrets.PRODUCTION_APPLICATION_YML }} | base64 --decode >> ./src/main/resources/application.yml
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'

- name: Init with Gradle
uses: gradle/gradle-build-action@v2
- run: gradle init

- name: Grant execute permission for gradlew
run: chmod +x gradlew


- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.1.1
arguments: build -x test

0 comments on commit 2ea988c

Please sign in to comment.