diff --git a/.gitea/workflows/bump.yml b/.gitea/workflows/bump.yml deleted file mode 100644 index 75de03c..0000000 --- a/.gitea/workflows/bump.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Bump Dependencies - -on: - push: - branches: - - main - schedule: - - cron: "0 0 * * *" - - cron: "0 12 * * *" - -jobs: - update-dependencies: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - - - name: Install Dependencies - run: bun install - - - name: Update Dependencies - run: bun update - - - name: Build App - run: bun run build - - - name: Commit and Push Changes - env: - USERNAME_GITEA: ${{ secrets.USERNAME_GITEA }} - TOKEN_GITEA: ${{ secrets.TOKEN_GITEA }} - run: | - git config --global user.name "LibreCloud Actions Bot" - git config --global user.email "git@pontusmail.org" - git remote set-url origin https://${USERNAME_GITEA}:${TOKEN_GITEA}@git.pontusmail.org/librecloud/web.git - git add . - git commit -m "chore: bump dependencies" || exit 0 - git push origin main diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml new file mode 100644 index 0000000..1a5b3ca --- /dev/null +++ b/.github/workflows/bump.yml @@ -0,0 +1,42 @@ +name: Bump Dependencies + +on: + push: + branches: + - main + schedule: + - cron: "0 0 * * *" + - cron: "0 12 * * *" + +jobs: + update-dependencies: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + - name: Install Dependencies + run: bun install + + - name: Update Dependencies + run: bun update + + - name: Commit and Push Changes + env: + USERNAME_GITEA: ${{ secrets.USERNAME_GITEA }} + TOKEN_GITEA: ${{ secrets.TOKEN_GITEA }} + SERVER_URL: ${{ secrets.SERVER_URL }} + run: | + git config --global user.name "LibreCloud Actions Bot" + git config --global user.email "git@pontusmail.org" + echo "Connecting to $SERVER_URL" + git remote set-url origin https://${USERNAME_GITEA}:${TOKEN_GITEA}@git.pontusmail.org/librecloud/web.git + git add . + git commit -m "chore: bump dependencies" || exit 0 + git push origin main \ No newline at end of file diff --git a/.gitea/workflows/docker.yaml b/.github/workflows/docker.yml similarity index 60% rename from .gitea/workflows/docker.yaml rename to .github/workflows/docker.yml index 7a41b60..a02fcc7 100644 --- a/.gitea/workflows/docker.yaml +++ b/.github/workflows/docker.yml @@ -14,14 +14,14 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to Gitea Package Registry - run: echo "${{ secrets.PACKAGE_TOKEN }}" | docker login $SERVER_URL -u $USERNAME --password-stdin - env: - SERVER_URL: ${{ secrets.SERVER_URL }} - USERNAME: ${{ secrets.USERNAME }} - PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }} + uses: docker/login-action@v3 + with: + registry: ${{ secrets.SERVER_URL }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PACKAGE_TOKEN }} - name: Build Docker Image run: docker build -t git.pontusmail.org/librecloud/web:latest . diff --git a/README.md b/README.md index 03713c3..60785c8 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,8 @@ ![Last Update](https://img.shields.io/badge/last_update-24_Feb_2024-blue) [![License: CC0-1.0](https://img.shields.io/badge/License-CC0_1.0-lightgrey.svg)](http://creativecommons.org/publicdomain/zero/1.0/) -[![Build Status](https://git.pontusmail.org/librecloud/web/actions/workflows/docker.yaml/badge.svg)](https://git.pontusmail.org/librecloud/web/actions/?workflow=docker.yaml) -[![Build Status](https://git.pontusmail.org/librecloud/web/actions/workflows/ci.yaml/badge.svg)](https://git.pontusmail.org/librecloud/web/actions/?workflow=ci.yaml) -[![Build Status](https://git.pontusmail.org/librecloud/web/actions/workflows/bump.yml/badge.svg)](https://git.pontusmail.org/librecloud/web/actions/?workflow=bump.yml) +[![Build and Push Docker Image](https://github.com/ihatenodejs/librecloud-web/actions/workflows/docker.yml/badge.svg)](https://github.com/ihatenodejs/librecloud-web/actions/workflows/docker.yml) +[![Bump Dependencies](https://github.com/ihatenodejs/librecloud-web/actions/workflows/bump.yml/badge.svg)](https://github.com/ihatenodejs/librecloud-web/actions/workflows/bump.yml) LibreCloud's website, dashboard, and API