Added version output

This commit is contained in:
Firq 2025-04-15 22:02:01 +02:00
parent edb548144a
commit 1cae67023f
Signed by: Firq
GPG key ID: DCE182BA39C697B2
7 changed files with 13 additions and 6 deletions

View file

@ -51,6 +51,8 @@ jobs:
with:
push: true
tags: forgejo.neshweb.net/firq/firq-dev-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/firq-dev-website:preview
build-args: |
version=${{ github.ref_name }}
create-release:
needs: [ build-site ]

View file

@ -51,6 +51,8 @@ jobs:
with:
push: true
tags: forgejo.neshweb.net/firq/firq-dev-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/firq-dev-website:latest
build-args: |
version=${{ github.ref_name }}
auto-deploy-dockge:
needs: [ build-site ]

View file

@ -10,10 +10,12 @@ RUN npm run build
RUN rm ./dist/.original.favicon.ico
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
ARG version
ENV version=0.0.1
WORKDIR /
COPY --from=build /app/dist /public
COPY --from=build /app/serve.json /public/serve.json
EXPOSE 8081
CMD serve --listen 8081 --no-clipboard /public
CMD echo $version; serve --listen 8081 --no-clipboard /public

View file

@ -3,7 +3,8 @@ FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
ARG version
ENV version=0.0.1
WORKDIR /
ADD reports /public
EXPOSE 8081
CMD echo $version && serve --listen 8081 --no-clipboard /public
CMD echo $version; serve --listen 8081 --no-clipboard /public

View file

@ -11,5 +11,5 @@ export default defineConfig({
outDir: 'dist',
publicDir: 'public',
site: 'https://firq.dev/',
integrations: [sitemap(), mdx(), astroMetaTags(), criticalCss()]
integrations: [sitemap(), mdx(), astroMetaTags(), criticalCss()],
});

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "@firq/fgosite",
"version": "0.2.0-pre.97",
"version": "0.2.0-pre.98",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@firq/fgosite",
"version": "0.2.0-pre.97",
"version": "0.2.0-pre.98",
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.5.6",
"@astrojs/check": "^0.9.4",

View file

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