Added version output
This commit is contained in:
parent
edb548144a
commit
1cae67023f
7 changed files with 13 additions and 6 deletions
|
@ -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 ]
|
||||
|
|
|
@ -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 ]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue