-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from slipstream8125/main
Modified the website to switch to new domain and web hosting solution (Altacee)
- Loading branch information
Showing
4 changed files
with
127 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
# Trigger the workflow every time you push to the `main` branch | ||
# Using a different branch name? Replace `main` with your branch’s name | ||
push: | ||
branches: [main] | ||
# Allows you to run this workflow manually from the Actions tab on GitHub. | ||
workflow_dispatch: | ||
|
||
# Allow this job to clone the repo and create a page deployment | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout your repository using git | ||
uses: actions/checkout@v4 | ||
- name: Install, build, and upload your site output | ||
uses: withastro/action@v2 | ||
with: | ||
path: . # The root location of your Astro project inside the repository. (optional) | ||
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 18. (optional) | ||
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) | ||
|
||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
# name: Deploy to GitHub Pages | ||
# | ||
# on: | ||
# # Trigger the workflow every time you push to the `main` branch | ||
# # Using a different branch name? Replace `main` with your branch’s name | ||
# push: | ||
# branches: [main] | ||
# # Allows you to run this workflow manually from the Actions tab on GitHub. | ||
# workflow_dispatch: | ||
# | ||
# # Allow this job to clone the repo and create a page deployment | ||
# permissions: | ||
# contents: read | ||
# pages: write | ||
# id-token: write | ||
# | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout your repository using git | ||
# uses: actions/checkout@v4 | ||
# - name: Install, build, and upload your site output | ||
# uses: withastro/action@v2 | ||
# with: | ||
# path: . # The root location of your Astro project inside the repository. (optional) | ||
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 18. (optional) | ||
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) | ||
# | ||
# deploy: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# environment: | ||
# name: github-pages | ||
# url: ${{ steps.deployment.outputs.page_url }} | ||
# steps: | ||
# - name: Deploy to GitHub Pages | ||
# id: deployment | ||
# uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Use Node.js as the base image | ||
FROM node:20 AS build | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy package.json and pnpm-lock.yaml | ||
COPY package.json pnpm-lock.yaml ./ | ||
|
||
# Install dependencies | ||
RUN npm install -g pnpm | ||
RUN pnpm install | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Build the Astro project | ||
RUN pnpm build | ||
|
||
# Use a lightweight web server to serve the built application | ||
FROM nginx:alpine | ||
|
||
# Copy built files from the build stage | ||
COPY --from=build /app/dist /usr/share/nginx/html | ||
|
||
# Expose port 80 | ||
EXPOSE 80 | ||
|
||
# Start Nginx server | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,48 @@ | ||
// -*-js-ts-*- | ||
import { defineConfig } from 'astro/config'; | ||
import starlight from '@astrojs/starlight'; | ||
import starlightImageZoom from 'starlight-image-zoom' | ||
// --js-ts-- | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
import starlightImageZoom from "starlight-image-zoom"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: 'https://stratos-linux.github.io', | ||
base: '', | ||
plugins: [starlightImageZoom()], | ||
integrations: [ | ||
starlight({ | ||
plugins: [starlightImageZoom()], | ||
title: 'StratOS Linux', | ||
customCss: process.env.NO_GRADIENTS ? [ './src/styles/_global.css'] : ['./src/styles/landing.css', './src/styles/_global.css'], | ||
// customCss: [ '@fontsource-variable/jetbrains-mono/400.css', '@fontsource-variable/jetbrains-mono/600.css' ], | ||
social: { | ||
github: 'https://github.com/StratOS-Linux/StratOS-iso', | ||
discord: 'https://discord.gg/DVaXRCnCet', | ||
mastodon: 'https://fosstodon.org/@StratOS', | ||
'x.com': 'https://twitter.com/StratOS_Linux', | ||
}, | ||
sidebar: [ | ||
// { | ||
// label: 'Guides', | ||
// items: [ | ||
// // Each item here is one entry in the navigation menu. | ||
// { label: 'Example Guide', link: '/guides/example/' }, | ||
// ], | ||
// }, | ||
{ | ||
label: 'Master tutorial', | ||
autogenerate: { directory: 'guides' }, | ||
}, | ||
{ | ||
label: 'Tools', | ||
autogenerate: { directory: 'tools' }, | ||
}, | ||
{ | ||
label: 'Strata', | ||
autogenerate: { directory: 'strata' }, | ||
}, | ||
], | ||
}), | ||
], | ||
site: "https://stratos-linux.org", | ||
base: "", | ||
plugins: [starlightImageZoom()], | ||
integrations: [ | ||
starlight({ | ||
plugins: [starlightImageZoom()], | ||
title: "StratOS Linux", | ||
customCss: process.env.NO_GRADIENTS | ||
? ["./src/styles/_global.css"] | ||
: ["./src/styles/landing.css", "./src/styles/_global.css"], | ||
// customCss: [ '@fontsource-variable/jetbrains-mono/400.css', '@fontsource-variable/jetbrains-mono/600.css' ], | ||
social: { | ||
github: "https://github.com/StratOS-Linux/StratOS-iso", | ||
discord: "https://discord.gg/DVaXRCnCet", | ||
mastodon: "https://fosstodon.org/@StratOS", | ||
"x.com": "https://twitter.com/StratOS_Linux", | ||
}, | ||
sidebar: [ | ||
// { | ||
// label: 'Guides', | ||
// items: [ | ||
// // Each item here is one entry in the navigation menu. | ||
// { label: 'Example Guide', link: '/guides/example/' }, | ||
// ], | ||
// }, | ||
{ | ||
label: "Master tutorial", | ||
autogenerate: { directory: "guides" }, | ||
}, | ||
{ | ||
label: "Tools", | ||
autogenerate: { directory: "tools" }, | ||
}, | ||
{ | ||
label: "Strata", | ||
autogenerate: { directory: "strata" }, | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.8' | ||
|
||
services: | ||
web: | ||
build: | ||
context: . | ||
ports: | ||
- "3000:80" | ||
networks: | ||
- coolify | ||
|
||
networks: | ||
coolify: | ||
external: true |