ci/docs: migrate ci to github, update docs with new badges
This commit is contained in:
parent
63eaceb6e6
commit
b177423755
@ -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
|
|
42
.github/workflows/bump.yml
vendored
Normal file
42
.github/workflows/bump.yml
vendored
Normal file
@ -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
|
@ -14,14 +14,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Gitea Package Registry
|
- name: Log in to Gitea Package Registry
|
||||||
run: echo "${{ secrets.PACKAGE_TOKEN }}" | docker login $SERVER_URL -u $USERNAME --password-stdin
|
uses: docker/login-action@v3
|
||||||
env:
|
with:
|
||||||
SERVER_URL: ${{ secrets.SERVER_URL }}
|
registry: ${{ secrets.SERVER_URL }}
|
||||||
USERNAME: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: docker build -t git.pontusmail.org/librecloud/web:latest .
|
run: docker build -t git.pontusmail.org/librecloud/web:latest .
|
@ -2,9 +2,8 @@
|
|||||||
|
|
||||||

|

|
||||||
[](http://creativecommons.org/publicdomain/zero/1.0/)
|
[](http://creativecommons.org/publicdomain/zero/1.0/)
|
||||||
[](https://git.pontusmail.org/librecloud/web/actions/?workflow=docker.yaml)
|
[](https://github.com/ihatenodejs/librecloud-web/actions/workflows/docker.yml)
|
||||||
[](https://git.pontusmail.org/librecloud/web/actions/?workflow=ci.yaml)
|
[](https://github.com/ihatenodejs/librecloud-web/actions/workflows/bump.yml)
|
||||||
[](https://git.pontusmail.org/librecloud/web/actions/?workflow=bump.yml)
|
|
||||||
|
|
||||||
LibreCloud's website, dashboard, and API
|
LibreCloud's website, dashboard, and API
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user