Skip to content

๐Ÿ”€ :: (#254) ๋Œ“๊ธ€ ๊ฐฏ์ˆ˜ ์˜ค๋ฅ˜ ์ˆ˜์ • (#116) #22

๐Ÿ”€ :: (#254) ๋Œ“๊ธ€ ๊ฐฏ์ˆ˜ ์˜ค๋ฅ˜ ์ˆ˜์ • (#116)

๐Ÿ”€ :: (#254) ๋Œ“๊ธ€ ๊ฐฏ์ˆ˜ ์˜ค๋ฅ˜ ์ˆ˜์ • (#116) #22

name: Xquare Deploy for Production
on:
push:
tags:
- v*.*.*
jobs:
build:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 17 ]
outputs:
version: ${{ steps.get_version.outputs.BRANCH_NAME }}
steps:
- name: Check Out The Repository
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: |
build
--no-daemon
- 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: |
PROFILE=prod
CLOUD_CONFIG_USERNAME=${{ secrets.CLOUD_CONFIG_USERNAME }}
CLOUD_CONFIG_PASSWORD=${{ secrets.CLOUD_CONFIG_PASSWORD }}
CLOUD_CONFIG_IMPORT_URL=${{ secrets.CLOUD_CONFIG_IMPORT_URL }}