Compare commits
45 Commits
Author | SHA1 | Date | |
---|---|---|---|
f243249fb8 | |||
6e5458de37 | |||
b7ea8165d2 | |||
ae4941073c | |||
de87ffeff2 | |||
369e97af41 | |||
754ff5d9a9 | |||
351cac00b3 | |||
11c85e324e | |||
5a418428d3 | |||
3d4c9c2214 | |||
10262c4b7a | |||
57ea8374a5 | |||
e9e1cabd11 | |||
4c1ec680a9 | |||
4f826e8964 | |||
3ddce86e64 | |||
61aa06310c | |||
03195017c5 | |||
fc3f4fdad4 | |||
fc42f31fb0 | |||
|
e56b3a001e | ||
|
13711618b7 | ||
04980a38af | |||
385ad20c82 | |||
761652f46d | |||
|
8f6b1af8ad | ||
|
90c8d30e3f | ||
|
ad9128acea | ||
|
5f9235c9dc | ||
|
3b2702af36 | ||
|
f999b9a92c | ||
|
35c940bef7 | ||
|
7aa6898a93 | ||
9d77c9db2a | |||
528eb8fb2e | |||
14e73d61ef | |||
|
d10fe280a5 | ||
|
5ea5774042 | ||
|
3c82fb43d8 | ||
|
c7071ab583 | ||
|
125d70d62e | ||
|
357634d3f0 | ||
|
bd4b85c874 | ||
7efa375427 |
58
.gitea/workflows/release-image-gitea.yml
Normal file
58
.gitea/workflows/release-image-gitea.yml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
name: release-image-gitea
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 0.*
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create Kubeconfig
|
||||||
|
run: |
|
||||||
|
mkdir $HOME/.kube
|
||||||
|
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: kubernetes
|
||||||
|
driver-opts: |
|
||||||
|
namespace=gitea
|
||||||
|
qemu.install=true
|
||||||
|
|
||||||
|
- name: Available Platforms
|
||||||
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||||
|
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.REPOSITORY_HOST }}
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.REPOSITORY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Extract Metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=tag
|
||||||
|
images: ${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }}
|
||||||
|
|
||||||
|
- name: Build and Push Image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
file: ./Dockerfile
|
58
.gitea/workflows/release-image-harbor.yml
Normal file
58
.gitea/workflows/release-image-harbor.yml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
name: release-image-harbor
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 0.*
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create Kubeconfig
|
||||||
|
run: |
|
||||||
|
mkdir $HOME/.kube
|
||||||
|
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: kubernetes
|
||||||
|
driver-opts: |
|
||||||
|
namespace=gitea
|
||||||
|
qemu.install=true
|
||||||
|
|
||||||
|
- name: Available Platforms
|
||||||
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||||
|
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.REGISTRY_HOST }}
|
||||||
|
username: ${{ vars.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_SECRET }}
|
||||||
|
|
||||||
|
- name: Extract Metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=tag
|
||||||
|
images: ${{ vars.REGISTRY_HOST }}/images/site-profile
|
||||||
|
|
||||||
|
- name: Build and Push Image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
file: ./Dockerfile
|
@@ -1,2 +0,0 @@
|
|||||||
# This file is processed by Renovate bot so that it creates a PR on new major Renovate versions
|
|
||||||
FROM renovate/renovate:38
|
|
44
.github/renovate.json
vendored
44
.github/renovate.json
vendored
@@ -1,44 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"config:recommended",
|
|
||||||
"mergeConfidence:all-badges",
|
|
||||||
":rebaseStalePrs"
|
|
||||||
],
|
|
||||||
"timezone": "US/Central",
|
|
||||||
"schedule": [
|
|
||||||
"every weekday"
|
|
||||||
],
|
|
||||||
"labels": [],
|
|
||||||
"prHourlyLimit": 0,
|
|
||||||
"prConcurrentLimit": 0,
|
|
||||||
"packageRules": [
|
|
||||||
{
|
|
||||||
"description": "Disables for non major Renovate version",
|
|
||||||
"matchPaths": [
|
|
||||||
".github/renovate-update-notification/Dockerfile"
|
|
||||||
],
|
|
||||||
"matchUpdateTypes": [
|
|
||||||
"minor",
|
|
||||||
"patch",
|
|
||||||
"pin",
|
|
||||||
"digest",
|
|
||||||
"rollback"
|
|
||||||
],
|
|
||||||
"enabled": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "Generate for major Renovate version",
|
|
||||||
"matchPaths": [
|
|
||||||
".github/renovate-update-notification/Dockerfile"
|
|
||||||
],
|
|
||||||
"matchUpdateTypes": [
|
|
||||||
"major"
|
|
||||||
],
|
|
||||||
"addLabels": [
|
|
||||||
"upgrade"
|
|
||||||
],
|
|
||||||
"automerge": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
45
.github/workflows/release-image.yml
vendored
45
.github/workflows/release-image.yml
vendored
@@ -1,45 +0,0 @@
|
|||||||
name: release-image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 0.*
|
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release-image:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Log into the container registry
|
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Extract metadata for Docker
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@60a0d343a0d8a18aedee9d34e62251f752153bdb
|
|
||||||
with:
|
|
||||||
tags: |
|
|
||||||
type=ref,event=branch
|
|
||||||
type=ref,event=tag
|
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
file: ./Dockerfile
|
|
6
.gitignore
vendored
6
.gitignore
vendored
@@ -23,5 +23,7 @@ pnpm-debug.log*
|
|||||||
# jetbrains setting folder
|
# jetbrains setting folder
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
# vscode workspace
|
# ide
|
||||||
site-profile.code-workspace
|
.vscode/
|
||||||
|
site-profile.code-workspace
|
||||||
|
.pre-commit-config.yaml
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
FROM node:20.17.0-alpine3.20 AS base
|
FROM node:22.15.1-alpine3.20 AS base
|
||||||
|
|
||||||
LABEL version="0.5.2"
|
LABEL version="0.6.8"
|
||||||
LABEL description="Astro based website to use as a profile"
|
LABEL description="Astro based website to use as a personal site"
|
||||||
|
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2024 Alex Lebens
|
Copyright (c) 2025 Alex Lebens
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
31
README.md
31
README.md
@@ -1 +1,30 @@
|
|||||||
# Profile
|
# Astro Starter Kit: Portfolio
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pnpm create astro@latest -- --template portfolio
|
||||||
|
```
|
||||||
|
|
||||||
|
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/portfolio)
|
||||||
|
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/portfolio)
|
||||||
|
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/portfolio/devcontainer.json)
|
||||||
|
|
||||||
|
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 🧞 Commands
|
||||||
|
|
||||||
|
All commands are run from the root of the project, from a terminal:
|
||||||
|
|
||||||
|
| Command | Action |
|
||||||
|
| :------------------------ | :----------------------------------------------- |
|
||||||
|
| `pnpm install` | Installs dependencies |
|
||||||
|
| `pnpm dev` | Starts local dev server at `localhost:4321` |
|
||||||
|
| `pnpm build` | Build your production site to `./dist/` |
|
||||||
|
| `pnpm preview` | Preview your build locally, before deploying |
|
||||||
|
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||||
|
| `pnpm astro -- --help` | Get help using the Astro CLI |
|
||||||
|
|
||||||
|
## 👀 Want to learn more?
|
||||||
|
|
||||||
|
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||||
|
@@ -3,7 +3,7 @@ import { defineConfig } from 'astro/config';
|
|||||||
import node from "@astrojs/node";
|
import node from "@astrojs/node";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: "hybrid",
|
output: "static",
|
||||||
adapter: node({
|
adapter: node({
|
||||||
mode: "standalone"
|
mode: "standalone"
|
||||||
})
|
})
|
||||||
|
@@ -26,19 +26,14 @@ type Skills = {
|
|||||||
skill_3_description: string;
|
skill_3_description: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
type Author = {
|
|
||||||
name: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Post = {
|
export type Post = {
|
||||||
slug: string;
|
slug: string;
|
||||||
title: string;
|
title: string;
|
||||||
content: string;
|
content: string;
|
||||||
image: string;
|
image: string;
|
||||||
|
image_alt: string;
|
||||||
published_date: string;
|
published_date: string;
|
||||||
author: Author;
|
|
||||||
tags: string[];
|
tags: string[];
|
||||||
image_alt: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Schema = {
|
type Schema = {
|
||||||
|
15
package.json
15
package.json
@@ -1,19 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "site-profile",
|
"name": "site-profile",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.5.2",
|
"version": "0.6.8",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"start": "astro dev",
|
"build": "astro build",
|
||||||
"build": "astro check && astro build",
|
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.9.3",
|
"@astrojs/check": "^0.9.4",
|
||||||
"@astrojs/node": "^8.3.3",
|
"@astrojs/node": "^9.2.1",
|
||||||
"@directus/sdk": "^17.0.0",
|
"@directus/sdk": "^19.1.0",
|
||||||
"astro": "^4.14.5",
|
"astro": "^5.7.13",
|
||||||
"typescript": "^5.5.4"
|
"typescript": "^5.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
3273
pnpm-lock.yaml
generated
3273
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
14
renovate.json
Normal file
14
renovate.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:recommended",
|
||||||
|
"mergeConfidence:all-badges",
|
||||||
|
":rebaseStalePrs"
|
||||||
|
],
|
||||||
|
"timezone": "US/Central",
|
||||||
|
"schedule": [ "* */1 * * *" ],
|
||||||
|
"labels": [],
|
||||||
|
"prHourlyLimit": 0,
|
||||||
|
"prConcurrentLimit": 0,
|
||||||
|
"packageRules": []
|
||||||
|
}
|
@@ -18,7 +18,7 @@ const global = await directus.request(readSingleton("global"));
|
|||||||
|
|
||||||
const posts = await directus.request(
|
const posts = await directus.request(
|
||||||
readItems("posts", {
|
readItems("posts", {
|
||||||
fields: ['*', { author: ['*'] }],
|
fields: ['*'],
|
||||||
sort: ["-published_date"],
|
sort: ["-published_date"],
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@@ -13,7 +13,7 @@ const global = await directus.request(readSingleton("global"));
|
|||||||
|
|
||||||
const posts = await directus.request(
|
const posts = await directus.request(
|
||||||
readItems("posts", {
|
readItems("posts", {
|
||||||
fields: ['*', { author: ['*'] }],
|
fields: ['*'],
|
||||||
sort: ["-published_date"],
|
sort: ["-published_date"],
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@@ -37,7 +37,7 @@ const posts = await directus.request(
|
|||||||
<PortfolioPreview posts={post} />
|
<PortfolioPreview posts={post} />
|
||||||
</li>
|
</li>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</Grid>
|
</Grid>
|
||||||
</main>
|
</main>
|
||||||
<ContactCTA />
|
<ContactCTA />
|
||||||
|
@@ -11,7 +11,7 @@ import { readItems } from "@directus/sdk";
|
|||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const posts = await directus.request(readItems("posts", {
|
const posts = await directus.request(readItems("posts", {
|
||||||
fields: ['*', { author: ['*'] }],
|
fields: ['*'],
|
||||||
}));
|
}));
|
||||||
return posts.map((post) => ({ params: { slug: post.slug }, props: post }));
|
return posts.map((post) => ({ params: { slug: post.slug }, props: post }));
|
||||||
}
|
}
|
||||||
@@ -28,7 +28,7 @@ const published_date: string = new Date(post.published_date).toLocaleDateString(
|
|||||||
<a class="back-link" href="/projects/"><Icon icon="arrow-left" /> Projects</a>
|
<a class="back-link" href="/projects/"><Icon icon="arrow-left" /> Projects</a>
|
||||||
<Hero
|
<Hero
|
||||||
title={post.title}
|
title={post.title}
|
||||||
tagline=`Published by ${post.author.name} on ${published_date}`
|
tagline=`Published on ${published_date}`
|
||||||
align="start"
|
align="start"
|
||||||
>
|
>
|
||||||
<div class="details">
|
<div class="details">
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "astro/tsconfigs/strict"
|
"extends": "astro/tsconfigs/strict",
|
||||||
}
|
"include": [".astro/types.d.ts", "**/*"],
|
||||||
|
"exclude": ["dist"]
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user