redis repository 추가 #5
Workflow file for this run
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: spurt build check | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
push_to_registry: | |
name: Push to aws container registry | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- name: make application.yml | |
if: github.event.pull_request.base.ref == 'main' || github.event.pull_request.base.ref == 'develop' | |
run: | | |
cd ./src/main/resources | |
touch ./application.yml | |
echo "${{ secrets.YML_PROD }}" > ./application.yml | |
shell: bash | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} |