Compare commits
74 commits
Author | SHA1 | Date | |
---|---|---|---|
a4e45ab2b8 | |||
a8815648cb | |||
747b1d78db | |||
d982c5f57b | |||
c609634b98 | |||
629bf91d4f | |||
949b05b192 | |||
de3e262a3c | |||
27ee2de172 | |||
95e8df6478 | |||
801c00375d | |||
fdb9fd183f | |||
1cf59e0bea | |||
00b9a8566c | |||
e4ab214441 | |||
55231de6ec | |||
03f3b230e6 | |||
15ebe78733 | |||
73609d03c0 | |||
e28c7e066d | |||
9fcbdebe9a | |||
123f600f6f | |||
2a208c60c8 | |||
75d498852f | |||
96df246781 | |||
89189da621 | |||
57cf29e71c | |||
034d769e7e | |||
5e4da25f8d | |||
1975bbc8d2 | |||
d67e426f15 | |||
1f1bc5a7db | |||
5da1dde6a6 | |||
9e61582456 | |||
9c2c7f7818 | |||
f1bb9b80ca | |||
0b4bca36ed | |||
3ebbc2408b | |||
4bd32b9840 | |||
5ed62666ac | |||
e577cf3861 | |||
7ee1afa674 | |||
c4d980f0cd | |||
b064bda7d8 | |||
d17e6ff986 | |||
c68294be55 | |||
23fbe1b733 | |||
a16d06676d | |||
cf384c018b | |||
8fc270833b | |||
827353f729 | |||
45fd44e192 | |||
2af757d5bd | |||
0afe61add2 | |||
2db950a59d | |||
58a33025c4 | |||
bee2d59662 | |||
f4ad0fa12d | |||
4e987231ac | |||
4489645fc6 | |||
04e9f5acaf | |||
da160ecb97 | |||
bcb09ce4d6 | |||
02acb9f4de | |||
9f607ff14d | |||
62e3869ce9 | |||
441d8a42a3 | |||
65d4339b9f | |||
c94fb25aba | |||
45319bcbf0 | |||
cbf8f0d2ea | |||
8f989176c7 | |||
e24c21c100 | |||
34784a3bf1 |
|
@ -1,17 +1,33 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '[0-9]+\.[0-9]+\.[0-9]+pre[0-9]+'
|
- '[0-9]+\.[0-9]+\.[0-9]+-pre\.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checking:
|
check-tag:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: node:lts
|
steps:
|
||||||
|
- name: Checking Out Repository Code
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
- name: Check if Version in package.json matches Tag
|
||||||
|
run: |
|
||||||
|
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
|
||||||
|
if test $VERSION != "${{ github.ref_name }}"; then
|
||||||
|
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Version is: '$VERSION'";
|
||||||
|
fi
|
||||||
|
|
||||||
|
checking:
|
||||||
|
needs: [ check-tag ]
|
||||||
|
runs-on: docker
|
||||||
|
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: npm install
|
run: npm i
|
||||||
- name: Run astro check (linting + static analysis)
|
- name: Run astro check (linting + static analysis)
|
||||||
run: npm run astro check
|
run: npm run astro check
|
||||||
|
|
||||||
|
@ -22,29 +38,25 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
- name: Log into Docker Package Registry
|
||||||
config-inline: |
|
|
||||||
[registry."docker.io"]
|
|
||||||
mirrors = ["https://docker-cache.neshweb.net"]
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: forgejo.neshweb.net
|
registry: forgejo.neshweb.net
|
||||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
- name: Push to Package Registry
|
- name: Build and push to Docker Package Registry
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:preview
|
tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:preview
|
||||||
|
|
||||||
publish:
|
create-release:
|
||||||
needs: [ build-site ]
|
needs: [ build-site ]
|
||||||
if: success()
|
if: success()
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Release New Version
|
- name: Release New Version
|
||||||
uses: actions/forgejo-release@v1
|
uses: https://code.forgejo.org/actions/forgejo-release@v1
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://forgejo.neshweb.net
|
url: https://forgejo.neshweb.net
|
||||||
|
@ -52,3 +64,34 @@ jobs:
|
||||||
token: ${{ secrets.FORGEJO_TOKEN }}
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
tag: ${{ github.ref_name }}
|
tag: ${{ github.ref_name }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
||||||
|
auto-deploy-dockge:
|
||||||
|
needs: [ build-site ]
|
||||||
|
if: success()
|
||||||
|
runs-on: docker
|
||||||
|
container: forgejo.neshweb.net/firq/dockge-cli:0.1.2
|
||||||
|
steps:
|
||||||
|
- name: Configure Dockge CLI
|
||||||
|
run: |
|
||||||
|
dockge host '${{ vars.DOCKGE_HOST }}'
|
||||||
|
dockge login --user '${{ secrets.DOCKGE_USER }}' --password '${{ secrets.DOCKGE_CREDENTIAL }}'
|
||||||
|
- name: Check status and redeploy
|
||||||
|
run: |
|
||||||
|
dockge status fgo-ta-com-preview
|
||||||
|
dockge update fgo-ta-com-preview
|
||||||
|
dockge status fgo-ta-com-preview
|
||||||
|
|
||||||
|
run-unlighthouse:
|
||||||
|
needs: [ build-site ]
|
||||||
|
if: success()
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Launch workflow
|
||||||
|
run: |
|
||||||
|
payload="{\"ref\": \"${GITHUB_REF_NAME}\", \"inputs\": { \"containertag\": \"${GITHUB_REF_NAME}\" }}"
|
||||||
|
curl -X "POST" \
|
||||||
|
-H "accept: application/json" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
|
-d "${payload}" \
|
||||||
|
"${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/actions/workflows/unlighthouse.yml/dispatches" -v
|
||||||
|
|
|
@ -4,14 +4,30 @@ on:
|
||||||
- '[0-9]+\.[0-9]+\.[0-9]+'
|
- '[0-9]+\.[0-9]+\.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checking:
|
check-tag:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: node:lts
|
steps:
|
||||||
|
- name: Checking Out Repository Code
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
- name: Check if Version in package.json matches Tag
|
||||||
|
run: |
|
||||||
|
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
|
||||||
|
if test $VERSION != "${{ github.ref_name }}"; then
|
||||||
|
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Version is: '$VERSION'";
|
||||||
|
fi
|
||||||
|
|
||||||
|
checking:
|
||||||
|
needs: [ check-tag ]
|
||||||
|
runs-on: docker
|
||||||
|
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: npm install
|
run: npm i
|
||||||
- name: Run astro check (linting + static analysis)
|
- name: Run astro check (linting + static analysis)
|
||||||
run: npm run astro check
|
run: npm run astro check
|
||||||
|
|
||||||
|
@ -22,32 +38,44 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
- name: Log into Docker Package Registry
|
||||||
config-inline: |
|
|
||||||
[registry."docker.io"]
|
|
||||||
mirrors = ["https://docker-cache.neshweb.net"]
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: forgejo.neshweb.net
|
registry: forgejo.neshweb.net
|
||||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
- name: Push to Package Registry
|
- name: Build and push to Docker Package Registry
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:latest
|
tags: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/fgo-ta-com-website:latest
|
||||||
|
|
||||||
release:
|
create-release:
|
||||||
needs: [ build-site ]
|
needs: [ build-site ]
|
||||||
if: success()
|
if: success()
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Release New Version
|
- name: Release New Version
|
||||||
uses: actions/forgejo-release@v1
|
uses: https://code.forgejo.org/actions/forgejo-release@v1
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://forgejo.neshweb.net
|
url: https://forgejo.neshweb.net
|
||||||
release-dir: release
|
release-dir: release
|
||||||
token: ${{ secrets.FORGEJO_TOKEN }}
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
tag: ${{ github.ref_name }}
|
tag: ${{ github.ref_name }}
|
||||||
|
|
||||||
|
auto-deploy-dockge:
|
||||||
|
needs: [ build-site ]
|
||||||
|
if: success()
|
||||||
|
runs-on: docker
|
||||||
|
container: forgejo.neshweb.net/firq/dockge-cli:0.1.2
|
||||||
|
steps:
|
||||||
|
- name: Configure Dockge CLI
|
||||||
|
run: |
|
||||||
|
dockge host '${{ vars.DOCKGE_HOST }}'
|
||||||
|
dockge login --user '${{ secrets.DOCKGE_USER }}' --password '${{ secrets.DOCKGE_CREDENTIAL }}'
|
||||||
|
- name: Check status and redeploy
|
||||||
|
run: |
|
||||||
|
dockge status fgo-ta-com
|
||||||
|
dockge update fgo-ta-com
|
||||||
|
dockge status fgo-ta-com
|
||||||
|
|
|
@ -4,13 +4,22 @@ on:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checking:
|
get-version:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: node:lts
|
steps:
|
||||||
|
- name: Checking Out Repository Code
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
- name: Check if Version in package.json matches Tag
|
||||||
|
run: |
|
||||||
|
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
|
||||||
|
echo "Version is: '$VERSION'";
|
||||||
|
astro-check:
|
||||||
|
runs-on: docker
|
||||||
|
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: npm install
|
run: npm i
|
||||||
- name: Run astro check (linting + static analysis)
|
- name: Run astro check (linting + static analysis)
|
||||||
run: npm run astro check
|
run: npm run astro check
|
||||||
|
|
|
@ -1,18 +1,36 @@
|
||||||
|
name: Run unlighthouse-tests [Downstream pipeline]
|
||||||
|
run-name: Run unlighthouse-tests [Downstream pipeline] for version ${{ inputs.containertag }}
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
inputs:
|
||||||
- '[0-9]+\.[0-9]+\.[0-9]+unlighthouse[0-9]+'
|
containertag:
|
||||||
- '[0-9]+\.[0-9]+\.[0-9]+ulh[0-9]+'
|
description: "Tag of the container to test"
|
||||||
|
default: "preview"
|
||||||
|
type: "string"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unlighthouse:
|
unlighthouse:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: forgejo.neshweb.net/ci-docker-images/unlighthouse:latest
|
container:
|
||||||
|
image: forgejo.neshweb.net/ci-docker-images/unlighthouse:0.3.0
|
||||||
|
services:
|
||||||
|
website:
|
||||||
|
image: forgejo.neshweb.net/firq/fgo-ta-com-website:${{ inputs.containertag }}
|
||||||
|
options: >-
|
||||||
|
--workdir /
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
- name: Check availability
|
||||||
|
run: |
|
||||||
|
while [ "$(curl -o /dev/null -s -w '%{http_code}' http://localhost:8081/)" -ne 200 ];
|
||||||
|
do echo "Waiting...";
|
||||||
|
sleep 5;
|
||||||
|
done;
|
||||||
- name: Run unlighthouse
|
- name: Run unlighthouse
|
||||||
run: unlighthouse-ci --site "https://preview.fgo-ta.com/"
|
run: unlighthouse-ci --site "http://localhost:8081/"
|
||||||
|
- name: Replace URLs
|
||||||
|
run: find ./unlighthouse-reports -type f | xargs sed -i "s|http://localhost:8081|https://preview.fgo-ta.com|g";
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: cp serve.json unlighthouse-reports
|
run: cp serve.json unlighthouse-reports
|
||||||
- name: Upload reports
|
- name: Upload reports
|
||||||
|
@ -20,76 +38,54 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: unlighthouse-reports
|
name: unlighthouse-reports
|
||||||
path: unlighthouse-reports/
|
path: unlighthouse-reports/
|
||||||
|
- name: Upload Dockerfile
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: dockerfile
|
||||||
|
path: Dockerfile.reports
|
||||||
|
|
||||||
deploy-unlighthouse-files:
|
build-site:
|
||||||
needs: [ unlighthouse ]
|
needs: [ unlighthouse ]
|
||||||
runs-on: docker
|
if: success()
|
||||||
env:
|
runs-on: dind
|
||||||
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
|
|
||||||
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install and update ssh + rsync
|
- name: Downloading static site artifacts
|
||||||
run: |
|
uses: actions/download-artifact@v3
|
||||||
which rsync || ( apt update -y && apt install rsync -y)
|
with:
|
||||||
which ssh-agent || ( apt update -y && apt install openssh-client -y)
|
name: dockerfile
|
||||||
- name: Downloading static site artifacts
|
- name: Downloading static site artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: unlighthouse-reports
|
name: unlighthouse-reports
|
||||||
path: public
|
path: reports
|
||||||
- name: Install SSH Key
|
- name: Set up Docker Buildx
|
||||||
uses: https://github.com/shimataro/ssh-key-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Log into Docker Package Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
registry: forgejo.neshweb.net
|
||||||
known_hosts: unnecessary
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||||
- name: Adding Known Hosts
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
run: ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
|
- name: Build and push to Docker Package Registry
|
||||||
- name: Stop screen session, delete old files
|
uses: docker/build-push-action@v5
|
||||||
uses: https://github.com/appleboy/ssh-action@master
|
|
||||||
with:
|
with:
|
||||||
host: ${{ env.DEPLOY_HOST }}
|
context: .
|
||||||
username: ${{ env.DEPLOY_USER }}
|
file: Dockerfile.reports
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
push: true
|
||||||
script: |
|
tags: forgejo.neshweb.net/firq/fgo-ta-com-website-unlighthouse:latest
|
||||||
screen -X -S fgo_ta_com-unlighthouse kill
|
|
||||||
rm -r -f fgo_ta_com/unlighthouse/*
|
|
||||||
- name: Copy files using rsync
|
|
||||||
run: rsync -az --stats public/* ${{ env.DEPLOY_USER }}@${{ env.DEPLOY_HOST }}:~/fgo_ta_com/unlighthouse
|
|
||||||
- name: Check files on deploy target
|
|
||||||
uses: https://github.com/appleboy/ssh-action@master
|
|
||||||
with:
|
|
||||||
host: ${{ env.DEPLOY_HOST }}
|
|
||||||
username: ${{ env.DEPLOY_USER }}
|
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
script: |
|
|
||||||
cd fgo_ta_com
|
|
||||||
find unlighthouse -maxdepth 1 -printf "%p\n"
|
|
||||||
|
|
||||||
deploy-unlighthouse-site:
|
auto-deploy-dockge:
|
||||||
needs: [ deploy-unlighthouse-files ]
|
needs: [ build-site ]
|
||||||
|
if: success()
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
env:
|
container: forgejo.neshweb.net/firq/dockge-cli:0.1.2
|
||||||
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
|
|
||||||
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install and update ssh + rsync
|
- name: Configure Dockge CLI
|
||||||
run: |
|
run: |
|
||||||
which rsync || ( apt update -y && apt install rsync -y)
|
dockge host '${{ vars.DOCKGE_HOST }}'
|
||||||
which ssh-agent || ( apt update -y && apt install openssh-client -y)
|
dockge login --user '${{ secrets.DOCKGE_USER }}' --password '${{ secrets.DOCKGE_CREDENTIAL }}'
|
||||||
- name: Install SSH Key
|
- name: Check status and redeploy
|
||||||
uses: https://github.com/shimataro/ssh-key-action@v2
|
run: |
|
||||||
with:
|
dockge status fgo-ta-com-unlighthouse
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
dockge update fgo-ta-com-unlighthouse
|
||||||
known_hosts: unnecessary
|
dockge status fgo-ta-com-unlighthouse
|
||||||
- name: Adding Known Hosts
|
|
||||||
run: ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
|
|
||||||
- name: Start new screen session
|
|
||||||
uses: https://github.com/appleboy/ssh-action@master
|
|
||||||
with:
|
|
||||||
host: ${{ env.DEPLOY_HOST }}
|
|
||||||
username: ${{ env.DEPLOY_USER }}
|
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
script: |
|
|
||||||
PATH="$HOME/.local/bin:$PATH"
|
|
||||||
cd fgo_ta_com
|
|
||||||
screen -S fgo_ta_com-unlighthouse -dm serve unlighthouse/ -p ${{ secrets.UNLIGHTHOUSE_DEPLOY_PORT }}
|
|
||||||
|
|
3
.gitignore
vendored
|
@ -19,3 +19,6 @@ pnpm-debug.log*
|
||||||
|
|
||||||
# macOS-specific files
|
# macOS-specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Temporary files
|
||||||
|
.temp/
|
||||||
|
|
15
Dockerfile
|
@ -1,15 +1,16 @@
|
||||||
FROM node:lts AS build
|
FROM node:22-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /site
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm i
|
RUN npm i
|
||||||
|
RUN npm run astro telemetry disable
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM forgejo.neshweb.net/ci-docker-images/website-serve:latest AS runtime
|
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
||||||
|
|
||||||
COPY --from=build /app/dist /public
|
COPY --from=build /site/dist /public
|
||||||
COPY --from=build /app/serve.json /public/serve.json
|
COPY --from=build /site/serve.json /public/serve.json
|
||||||
|
|
||||||
ENV PORT 8081
|
ENV PORT=8081
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
CMD [ "serve", "public/", "-p", "8081" ]
|
CMD serve public/ -p ${PORT}
|
||||||
|
|
6
Dockerfile.reports
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
||||||
|
|
||||||
|
ADD reports /public
|
||||||
|
|
||||||
|
EXPOSE 8081
|
||||||
|
CMD serve public/ -p 8081
|
44
README.md
|
@ -1,42 +1,6 @@
|
||||||
# Astro Starter Kit: Basics
|
# FGO TA Astro Site
|
||||||
|
|
||||||
```
|
## Commands
|
||||||
npm create astro@latest -- --template basics
|
|
||||||
```
|
|
||||||
|
|
||||||
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
|
|
||||||
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
|
|
||||||
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
|
|
||||||
|
|
||||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
|
||||||
|
|
||||||
![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png)
|
|
||||||
|
|
||||||
## 🚀 Project Structure
|
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
|
||||||
|
|
||||||
```
|
|
||||||
/
|
|
||||||
├── public/
|
|
||||||
│ └── favicon.svg
|
|
||||||
├── src/
|
|
||||||
│ ├── components/
|
|
||||||
│ │ └── Card.astro
|
|
||||||
│ ├── layouts/
|
|
||||||
│ │ └── Layout.astro
|
|
||||||
│ └── pages/
|
|
||||||
│ └── index.astro
|
|
||||||
└── package.json
|
|
||||||
```
|
|
||||||
|
|
||||||
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
|
|
||||||
|
|
||||||
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
|
|
||||||
|
|
||||||
Any static assets, like images, can be placed in the `public/` directory.
|
|
||||||
|
|
||||||
## 🧞 Commands
|
|
||||||
|
|
||||||
All commands are run from the root of the project, from a terminal:
|
All commands are run from the root of the project, from a terminal:
|
||||||
|
|
||||||
|
@ -48,7 +12,3 @@ All commands are run from the root of the project, from a terminal:
|
||||||
| `npm run preview` | Preview your build locally, before deploying |
|
| `npm run preview` | Preview your build locally, before deploying |
|
||||||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||||
| `npm run astro -- --help` | Get help using the Astro CLI |
|
| `npm run astro -- --help` | Get help using the Astro CLI |
|
||||||
|
|
||||||
## 👀 Want to learn more?
|
|
||||||
|
|
||||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
import { defineConfig } from 'astro/config'
|
import sitemap from '@astrojs/sitemap';
|
||||||
import sitemap from '@astrojs/sitemap'
|
import metaTags from "astro-meta-tags";
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
sitemap: true,
|
sitemap: true,
|
||||||
base: '/',
|
base: '/',
|
||||||
outDir: 'dist',
|
outDir: 'dist',
|
||||||
publicDir: 'static',
|
publicDir: 'public',
|
||||||
site: 'https://fgo-ta.com/',
|
site: 'https://fgo-ta.com/',
|
||||||
integrations: [sitemap()],
|
integrations: [sitemap(), metaTags()],
|
||||||
trailingSlash: "never"
|
trailingSlash: "never"
|
||||||
})
|
});
|
4809
package-lock.json
generated
20
package.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "fgo-ta-com-website",
|
"name": "fgo-ta-com-website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.11",
|
"version": "0.2.2-pre.22",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
|
@ -10,14 +10,16 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astro-community/astro-embed-youtube": "^0.4.3",
|
"@astro-community/astro-embed-youtube": "^0.5.2",
|
||||||
"@astrojs/check": "^0.3.4",
|
"@astrojs/check": "^0.9.3",
|
||||||
"@astrojs/sitemap": "^3.0.3",
|
"@astrojs/sitemap": "^3.1.6",
|
||||||
"astro": "^4.0.7",
|
"@fontsource/work-sans": "^5.0.18",
|
||||||
"autoprefixer": "^10.4.16",
|
"astro": "^4.14.3",
|
||||||
"iconoir": "^7.3.0",
|
"astro-meta-tags": "^0.3.0",
|
||||||
"postcss-preset-env": "^9.3.0",
|
"autoprefixer": "^10.4.19",
|
||||||
"typescript": "^5.3.3"
|
"iconoir": "^7.7.0",
|
||||||
|
"postcss-preset-env": "^9.6.0",
|
||||||
|
"typescript": "^5.5.3"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
|
|
13
postcss.config.cjs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
module.exports = {
|
||||||
|
plugins: {
|
||||||
|
"postcss-preset-env": {
|
||||||
|
autoprefixer: { flexbox: "no-2009" },
|
||||||
|
stage: 2,
|
||||||
|
features: {
|
||||||
|
"custom-properties": false,
|
||||||
|
"custom-media-queries": true,
|
||||||
|
"nesting-rules": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
|
@ -4,4 +4,4 @@ Disallow: /assets/data/
|
||||||
User-agent: GPTBot
|
User-agent: GPTBot
|
||||||
Disallow: /
|
Disallow: /
|
||||||
|
|
||||||
Sitemap: https://firq.dev/sitemap-index.xml
|
Sitemap: https://fgo-ta.com/sitemap-index.xml
|
|
@ -12,6 +12,15 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"source": "**/*.woff2",
|
||||||
|
"headers": [
|
||||||
|
{
|
||||||
|
"key": "Cache-Control",
|
||||||
|
"value": "no-cache"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"source": "404.html",
|
"source": "404.html",
|
||||||
"headers": [
|
"headers": [
|
||||||
|
|
BIN
src/assets/lizsad.png
Normal file
After Width: | Height: | Size: 191 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/11.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
src/assets/ta_servants/113.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
src/assets/ta_servants/115.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
src/assets/ta_servants/118.png
Normal file
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/126.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
src/assets/ta_servants/128.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
src/assets/ta_servants/133.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/134.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/136.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/139.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
src/assets/ta_servants/141.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
src/assets/ta_servants/142.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
src/assets/ta_servants/143.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/145.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/148.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
src/assets/ta_servants/150.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/153.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
src/assets/ta_servants/155.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
src/assets/ta_servants/16.png
Normal file
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
BIN
src/assets/ta_servants/165.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
src/assets/ta_servants/167.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/175.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
src/assets/ta_servants/182.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/195.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/196.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/198.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/2.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
src/assets/ta_servants/200.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
src/assets/ta_servants/201.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/205.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
src/assets/ta_servants/209.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/213.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
src/assets/ta_servants/215.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/216.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/219.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
src/assets/ta_servants/220.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/223.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/224.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
src/assets/ta_servants/225.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/226.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
src/assets/ta_servants/231.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
src/assets/ta_servants/232.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/234.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
src/assets/ta_servants/235.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
src/assets/ta_servants/238.png
Normal file
After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
BIN
src/assets/ta_servants/247.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
src/assets/ta_servants/250.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
src/assets/ta_servants/252.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/253.png
Normal file
After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
BIN
src/assets/ta_servants/261.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
src/assets/ta_servants/264.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/266.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/268.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/275.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/276.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/277.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
src/assets/ta_servants/278.png
Normal file
After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/281.png
Normal file
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/284.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
src/assets/ta_servants/285.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/ta_servants/286.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/288.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
src/assets/ta_servants/293.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
src/assets/ta_servants/295.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
src/assets/ta_servants/297.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
src/assets/ta_servants/299.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
src/assets/ta_servants/3.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
src/assets/ta_servants/300.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
src/assets/ta_servants/302.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
src/assets/ta_servants/303.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
src/assets/ta_servants/305.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/ta_servants/306.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/ta_servants/307.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
src/assets/ta_servants/308.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
src/assets/ta_servants/309.png
Normal file
After Width: | Height: | Size: 30 KiB |