Chore: dockerfile typo2 (#198) #24
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: release server | |
on: | |
push: | |
branches: | |
- prod | |
env: | |
GRADLE_VERSION: 8.3 | |
JAVA_VERSION: '17' | |
JAVA_DISTRIBUTION: 'temurin' | |
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true | |
jobs: | |
push-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Branch | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
- name: Setup Gradle w/ caching | |
uses: gradle/[email protected] | |
with: | |
arguments: clean build | |
gradle-version: ${{ env.GRADLE_VERSION }} | |
- name: Login Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
file: ./Dockerfile | |
platforms: ${{ secrets.HOST_PLATFORM }} | |
build-args: | | |
JASYPT_PASSWORD=${{ secrets.JASYPT_PASSWORD }} | |
MAIL_USERNAME=${{ secrets.MAIL_USERNAME }} | |
MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }} | |
tags: gmlwh124/ajaja:latest | |
context: . |