From 66107da6041f204e5b1e4502c229272ac55a1fdb Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Sun, 25 Aug 2024 13:37:48 +0900 Subject: [PATCH] Add xquare deploy workflow and initial config --- .github/workflows/xquare-deploy.yaml | 28 ++++++++++++++++++++++++++++ .xquare/config.yaml | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/xquare-deploy.yaml create mode 100644 .xquare/config.yaml diff --git a/.github/workflows/xquare-deploy.yaml b/.github/workflows/xquare-deploy.yaml new file mode 100644 index 0000000..f5e39fc --- /dev/null +++ b/.github/workflows/xquare-deploy.yaml @@ -0,0 +1,28 @@ +on: + push: + branches: + - main + paths: + - '**' + +jobs: + build: + permissions: + id-token: write + contents: read + name: Build + runs-on: ubuntu-latest + steps: + - name: Check Out The Repository + uses: actions/checkout@v3 + + - name: Deploy to xquare + uses: team-xquare/xquare-deployment-action@master + with: + environment: prod + access_key: ${{ secrets.ACCESS_KEY }} + buildargs: | + AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_REGION=${{ secrets.AWS_REGION }} + AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} + S3_BUCKET=${{ secrets.S3_BUCKET }} \ No newline at end of file diff --git a/.xquare/config.yaml b/.xquare/config.yaml new file mode 100644 index 0000000..c08ca7e --- /dev/null +++ b/.xquare/config.yaml @@ -0,0 +1,6 @@ +config: + name: turborepo-remote-cache + service_type: fe + port: 3000 + domain: + prod: turborepo-remote-cache.xquare.app \ No newline at end of file