Skip to content

Commit

Permalink
add github action steps
Browse files Browse the repository at this point in the history
  • Loading branch information
chicori3 committed Jul 25, 2024
1 parent 1bb20ec commit 3f941ac
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/prod_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,21 @@ jobs:
mkdir deploy/scripts
cp ./scripts/* ./deploy/scripts/
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

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

- name: Build with Gradle
run: ./gradlew build

- name: Docker push
run: |
cd module-web
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker build -t ${{ secrets.DOCKER_REPOSITORY_PROD }} .
docker push ${{ secrets.DOCKER_REPOSITORY_PROD }}
Expand Down

0 comments on commit 3f941ac

Please sign in to comment.