Skip to content

Commit

Permalink
Merge pull request #8 from slipstream8125/main
Browse files Browse the repository at this point in the history
Modified the website to switch to new domain and web hosting solution (Altacee)
  • Loading branch information
slipstream8125 authored Sep 7, 2024
2 parents 834defa + 8bb9bb6 commit 9049264
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 81 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/deploy.yml
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
30 changes: 30 additions & 0 deletions Dockerfile
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;"]
86 changes: 44 additions & 42 deletions astro.config.mjs
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" },
},
],
}),
],
});
14 changes: 14 additions & 0 deletions compose.yml
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

0 comments on commit 9049264

Please sign in to comment.