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:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: forgejo.neshweb.net/firq/firq-dev-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/firq-dev-website:preview
|
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:
|
create-release:
|
||||||
needs: [ build-site ]
|
needs: [ build-site ]
|
||||||
|
|
|
@ -51,6 +51,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: forgejo.neshweb.net/firq/firq-dev-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/firq-dev-website:latest
|
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:
|
auto-deploy-dockge:
|
||||||
needs: [ build-site ]
|
needs: [ build-site ]
|
||||||
|
|
|
@ -10,10 +10,12 @@ RUN npm run build
|
||||||
RUN rm ./dist/.original.favicon.ico
|
RUN rm ./dist/.original.favicon.ico
|
||||||
|
|
||||||
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
||||||
|
ARG version
|
||||||
|
ENV version=0.0.1
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
COPY --from=build /app/dist /public
|
COPY --from=build /app/dist /public
|
||||||
COPY --from=build /app/serve.json /public/serve.json
|
COPY --from=build /app/serve.json /public/serve.json
|
||||||
|
|
||||||
EXPOSE 8081
|
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
|
ARG version
|
||||||
ENV version=0.0.1
|
ENV version=0.0.1
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
ADD reports /public
|
ADD reports /public
|
||||||
|
|
||||||
EXPOSE 8081
|
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',
|
outDir: 'dist',
|
||||||
publicDir: 'public',
|
publicDir: 'public',
|
||||||
site: 'https://firq.dev/',
|
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",
|
"name": "@firq/fgosite",
|
||||||
"version": "0.2.0-pre.97",
|
"version": "0.2.0-pre.98",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@firq/fgosite",
|
"name": "@firq/fgosite",
|
||||||
"version": "0.2.0-pre.97",
|
"version": "0.2.0-pre.98",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astro-community/astro-embed-youtube": "^0.5.6",
|
"@astro-community/astro-embed-youtube": "^0.5.6",
|
||||||
"@astrojs/check": "^0.9.4",
|
"@astrojs/check": "^0.9.4",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@firq/fgosite",
|
"name": "@firq/fgosite",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.2.0-pre.97",
|
"version": "0.2.0-pre.98",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue