From 43d9e48add081822f507db5658ac37eb8735ebb0 Mon Sep 17 00:00:00 2001 From: Jody Yuantoro Date: Tue, 5 Nov 2024 21:02:11 +0700 Subject: [PATCH] Pull Changes from main (#12) * chore(deps): update docker/setup-buildx-action action to v3 * misc(docs): Update README.md * chore(deps): update actions/checkout action to v4 * chore(deps): update dependency arctic to v2 * Fix Env Argument (#11) * Update Dockerfile * Update Dockerfile * hotfix(ci/cd): Wrong DATABASE_URL production --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/build-dev.yml | 6 +++--- .github/workflows/build-prod.yml | 8 ++++---- .github/workflows/pr-test.yml | 2 +- README.md | 13 +++++-------- bun.lockb | Bin 98237 -> 100406 bytes package.json | 2 +- 6 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 387ac53..ec7a8f9 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -11,7 +11,7 @@ jobs: runs-on: self-hosted steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Initialize Bun Environtment uses: oven-sh/setup-bun@v2 @@ -54,10 +54,10 @@ jobs: if: success() steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Settle up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Declaring some Global Environtment vars run: | diff --git a/.github/workflows/build-prod.yml b/.github/workflows/build-prod.yml index 9a88d60..b05a57b 100644 --- a/.github/workflows/build-prod.yml +++ b/.github/workflows/build-prod.yml @@ -11,7 +11,7 @@ jobs: runs-on: self-hosted steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Initialize Bun Environtment uses: oven-sh/setup-bun@v2 @@ -54,10 +54,10 @@ jobs: if: success() steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Settle up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Declaring some Global Environtment vars run: | @@ -87,7 +87,7 @@ jobs: --build-arg BASE_URL=${{ env.BASE_URL }} \ --build-arg DOMAIN=${{ env.DOMAIN }} \ --build-arg PASSWORD_PEPPER=${{ secrets.PASSWORD_PEPPER }} \ - --build-arg DATABASE_URL=${{ secrets.DATABASE_URL_DEV }} \ + --build-arg DATABASE_URL=${{ secrets.DATABASE_URL }} \ --build-arg GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} \ --build-arg GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} \ --build-arg GITHUB_CLIENT_ID=${{ secrets.GH_CLIENT_ID }} \ diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 1f6ee3c..84d0901 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -11,7 +11,7 @@ jobs: runs-on: self-hosted steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Initialize Bun Environment uses: oven-sh/setup-bun@v2 diff --git a/README.md b/README.md index 6090094..a097fb2 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,10 @@ -# Elysia with Bun runtime +# xyzuan APIs V2 +![image](https://github.com/user-attachments/assets/52aba5b1-0691-4657-9daa-0ddb05ea84e3) -## Getting Started - -To get started with this template, simply paste this command into your terminal: - -```bash -bun create elysia ./elysia-example -``` +[![Build xyzuan-api-v2 Production Build](https://github.com/xyzuan/xyzuan.v2.be/actions/workflows/build-prod.yml/badge.svg?branch=main)](https://github.com/xyzuan/xyzuan.v2.be/actions/workflows/build-prod.yml) +[![Build xyzuan-api-v2 Development Build](https://github.com/xyzuan/xyzuan.v2.be/actions/workflows/build-dev.yml/badge.svg?branch=dev)](https://github.com/xyzuan/xyzuan.v2.be/actions/workflows/build-dev.yml) +## Getting Started ## Development To start the development server run: diff --git a/bun.lockb b/bun.lockb index 31c0358a7e547ac679ff656b02e48b69ac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s/swagger": "^1.1.1", "@lucia-auth/adapter-prisma": "^4.0.1", "@prisma/client": "5.19.1", - "arctic": "^1.9.2", + "arctic": "^2.0.0", "cloudinary": "^2.5.1", "elysia-rate-limit": "^4.1.0", "lucia": "^3.2.0",