Removed Dockge again, switched to alpine images
All checks were successful
/ get-version (push) Successful in 3s
/ astro-check (push) Successful in 13s
/ check-tag (push) Successful in 2s
/ checking (push) Successful in 13s
/ build-site (push) Successful in 1m4s
/ create-release (push) Successful in 6s

This commit is contained in:
Firq 2024-07-20 17:02:30 +02:00
parent bc5f43802f
commit 186b797bb6
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 29 additions and 51 deletions

View file

@ -65,50 +65,30 @@ jobs:
tag: ${{ github.ref_name }}
prerelease: true
auto-deploy-dockge:
needs: [ build-site ]
runs-on: docker
if: success()
container: nikolaik/python-nodejs:python3.11-nodejs21
steps:
- name: Configure pip
run: |
pip config set global.index-url https://pypi.org/simple
pip config set global.extra-index-url https://forgejo.neshweb.net/api/packages/Firq/pypi/simple/
pip config set global.timeout 60
pip config set global.trusted-host "pypi.org forgejo.neshweb.net"
- name: Install Dockge CLI
run: pip install dockge-cli
- name: Configure Dockge CLI
run: |
dockge host https://dockge.firq.dev
dockge login --user ${{ secrets.DOCKGE_USER }} --password ${{ secrets.DOCKGE_CREDENTIAL }}
- name: Check status and redeploy
run: |
dockge status firq-dev-preview
dockge update firq-dev-preview
dockge status firq-dev-preview
- name: Reset CLI
run : |
dockge logout
dockge exit
# doesn't work atm
# unlighthouse:
# needs: [publish]
# if: success()
# auto-deploy-dockge:
# needs: [ build-site ]
# runs-on: docker
# container: registry.gitlab.com/gitlab-ci-utils/lighthouse:latest
# services:
# website:
# image: forgejo.neshweb.net/firq/firq-dev-website:preview
# if: success()
# container: nikolaik/python-nodejs:python3.11-nodejs21
# steps:
# - name: Install Dependencies
# run: npm install @unlighthouse/cli puppeteer
# - name: Run unlighthouse
# run: node_modules/.bin/unlighthouse-ci
# - name: Upload reports
# uses: actions/upload-artifact@v3
# with:
# name: unlighthouse-reports
# path: unlighthouse-reports/
# - name: Configure pip
# run: |
# pip config set global.index-url https://pypi.org/simple
# pip config set global.extra-index-url https://forgejo.neshweb.net/api/packages/Firq/pypi/simple/
# pip config set global.timeout 60
# pip config set global.trusted-host "pypi.org forgejo.neshweb.net"
# - name: Install Dockge CLI
# run: pip install dockge-cli
# - name: Configure Dockge CLI
# run: |
# dockge host https://dockge.firq.dev
# dockge login --user ${{ secrets.DOCKGE_USER }} --password ${{ secrets.DOCKGE_CREDENTIAL }}
# - name: Check status and redeploy
# run: |
# dockge status firq-dev-preview
# dockge update firq-dev-preview
# dockge status firq-dev-preview
# - name: Reset CLI
# run : |
# dockge logout
# dockge exit

View file

@ -1,17 +1,15 @@
FROM node:lts AS build
FROM node:22-alpine AS build
WORKDIR /app
COPY . .
RUN npm i
RUN npm run astro telemetry disable
RUN npm run build
FROM forgejo.neshweb.net/ci-docker-images/website-serve:0.1.3 AS runtime
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
COPY --from=build /app/dist /public
COPY --from=build /app/serve.json /public/serve.json
RUN rm -r /public/data/
ENV PORT=8081
EXPOSE 8081
CMD serve public/ -p ${PORT}
CMD serve public/ -p 8081

View file

@ -1,7 +1,7 @@
{
"name": "@firq/fgosite",
"type": "module",
"version": "0.2.0-pre.4",
"version": "0.2.0-pre.5",
"private": true,
"scripts": {
"dev": "astro dev",