fix: database platform #86
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: Publish Docker | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew clean build | |
- name: Deploy to xquare | |
uses: team-xquare/xquare-deployment-action@master | |
with: | |
environment: prod | |
access_key: ${{ secrets.ACCESS_KEY }} | |
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
buildargs: | | |
MYSQL_USERNAME=${{ secrets.MYSQL_USERNAME }} | |
MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }} |