Skip to content

Merge pull request #272 from GSM-MSG/Ops-codedeploy #96

Merge pull request #272 from GSM-MSG/Ops-codedeploy

Merge pull request #272 from GSM-MSG/Ops-codedeploy #96

Workflow file for this run

name: GCMS-CI
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
env:
DB_HOST: ${{ secrets.DB_HOST }}
MYSQL_ROOT_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_PORT: ${{ secrets.DB_PORT }}
ports:
- 3306:3306
redis:
image: redis:latest
env:
REDIS_HOST: ${{ secrets.REDIS_HOST }}
REDIS_PORT: ${{ secrets.REDIS_PORT }}
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create application.yml
run: |
rm ./src/main/resources/application.yml
touch ./src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }}" >> ./src/main/resources/application.yml
shell: bash
- name: Build with Gradle
run: ./gradlew clean build