[c] Migrate to gitpot.org
All checks were successful
Build and push docker image / deploy (push) Successful in 1m11s

This commit is contained in:
Sangelo 2024-04-08 13:52:10 +02:00
parent e682a4ca4f
commit a00a1df43d
13 changed files with 24 additions and 24 deletions

View file

@ -38,11 +38,11 @@ jobs:
- name: 🐳 Publish Container
run: |
export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
echo "${{ secrets.PUBLISH_TOKEN }}" | docker login gitpot.dev -u sangelo --password-stdin
docker push "gitpot.dev/sangelo/website:${TAG}"
echo "${{ secrets.PUBLISH_TOKEN }}" | docker login gitpot.org -u sangelo --password-stdin
docker push "gitpot.org/sangelo/website:${TAG}"
# publish tag latest as well
if echo "${{ github.ref }}" | grep -q "refs/tags/"; then
docker tag "gitpot.dev/sangelo/website:${TAG}" "gitpot.dev/sangelo/website:latest"
docker push "gitpot.dev/sangelo/website:latest"
docker tag "gitpot.org/sangelo/website:${TAG}" "gitpot.org/sangelo/website:latest"
docker push "gitpot.org/sangelo/website:latest"
fi

View file

@ -32,10 +32,10 @@ CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile
LABEL org.opencontainers.image.title="Sangelo's Space"
LABEL org.opencontainers.image.description="Sangelo's Space website, packaged as a docker container, with the Caddy webserver."
LABEL org.opencontainers.image.url="https://sangelo.space"
LABEL org.opencontainers.image.documentation="https://gitpot.dev/sangelo/website"
LABEL org.opencontainers.image.documentation="https://gitpot.org/sangelo/website"
LABEL org.opencontainers.image.vendor="Sangelo"
LABEL org.opencontainers.image.licenses="GPL-v3"
LABEL org.opencontainers.image.source="https://gitpot.dev/sangelo/website"
LABEL org.opencontainers.image.source="https://gitpot.org/sangelo/website"
# Remove intermediate images after build
ONBUILD RUN rm -rf /app

View file

@ -4,7 +4,7 @@ set dotenv-load
# defaults
default_runner := 'docker'
default_tag := 'latest'
default_image := 'gitpot.dev/sangelo/website:latest'
default_image := 'gitpot.org/sangelo/website:latest'
# run development server by default
default: dev
@ -37,7 +37,7 @@ clean runner=default_runner tag=default_tag:
_clean_images runner=default_runner:
#!/usr/bin/env bash
set -o pipefail
image_ids=$({{runner}} image ls | grep gitpot.dev/sangelo/website | awk '{print $3}')
image_ids=$({{runner}} image ls | grep gitpot.org/sangelo/website | awk '{print $3}')
if [ -n "$image_ids" ]; then
for image_id in $image_ids; do
{{runner}} image rm $image_id
@ -61,7 +61,7 @@ run tag=default_tag runner=default_runner:
publish image=default_image runner=default_runner:
@echo "Publishing with '{{runner}}'..."
@# log into gitpot
echo "$GITPOT_TOKEN" | {{runner}} login gitpot.dev -u $GITPOT_USERNAME --password-stdin
echo "$GITPOT_TOKEN" | {{runner}} login gitpot.org -u $GITPOT_USERNAME --password-stdin
@# push the specified image to the container registry
{{runner}} push {{image}}
@echo "Published {{image}} successfuly! Use '{{runner}} pull {{image}}' to pull the container."

View file

@ -1,6 +1,6 @@
services:
web:
image: gitpot.dev/sangelo/website:${TAG}
image: gitpot.org/sangelo/website:${TAG}
build:
context: .
dockerfile: Dockerfile

View file

@ -7,7 +7,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
website:
image: gitpot.dev/sangelo/website:latest
image: gitpot.org/sangelo/website:latest
container_name: website
restart: unless-stopped
ports:

View file

@ -125,7 +125,7 @@
</div>
<div class="tooltip">
<a
href="https://gitpot.dev/sangelo"
href="https://gitpot.org/sangelo"
target="_blank"
rel="noopener noreferrer me"
tabindex="0"

View file

@ -1,8 +1,8 @@
<script>
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
let projectLogo = "assets/logos/dashinit.svg";
let projectReadme = "https://gitpot.dev/dashinit/cli/raw/branch/main/README.md";
let projectSite = "https://gitpot.dev/dashinit/cli";
let projectReadme = "https://gitpot.org/dashinit/cli/raw/branch/main/README.md";
let projectSite = "https://gitpot.org/dashinit/cli";
</script>
<content>

View file

@ -1,7 +1,7 @@
<script>
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
let projectLogo = "assets/logos/explorecraft.svg";
let projectReadme = "https://gitpot.dev/ExploreCraft/website/raw/branch/main/README.md";
let projectReadme = "https://gitpot.org/ExploreCraft/website/raw/branch/main/README.md";
let projectSite = "https://explorecraft.net";
</script>

View file

@ -1,8 +1,8 @@
<script>
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
let projectLogo = "assets/logos/gitpot-color.svg";
let projectReadme = "https://gitpot.dev/gitpot/.profile/raw/branch/main/README.md";
let projectSite = "https://gitpot.dev"
let projectReadme = "https://gitpot.org/gitpot/.profile/raw/branch/main/README.md";
let projectSite = "https://gitpot.org"
</script>
<content>

View file

@ -1,7 +1,7 @@
<script>
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
let projectLogo = "assets/logos/lunivity.svg";
let projectReadme = "https://gitpot.dev/lunivity/.profile/raw/branch/main/README.md";
let projectReadme = "https://gitpot.org/lunivity/.profile/raw/branch/main/README.md";
let projectSite = "https://lunivity.com"
</script>

View file

@ -17,7 +17,7 @@
<h1 class="modal-title no-select">All Projects</h1>
<p class="modal-title">These are all of my projects, including the ones that didn't fit in the homepage. Take a look!</p>
<ul class="item-list">
<a class="item" href="https://gitpot.dev/sangelo/website" rel="noopener noreferrer" target="_blank" tabindex="0">
<a class="item" href="https://gitpot.org/sangelo/website" rel="noopener noreferrer" target="_blank" tabindex="0">
<div class="thumbnail"><img src="assets/logos/sangelos-space-website.svg" alt="Sangelo's Logo" /></div>
<div class="item-details">
<h2>Sangelo's Space</h2>
@ -31,14 +31,14 @@
<p class="item-description">Open-source by nature, self-hosted by choice. Self-hosted cloud services.</p>
</div>
</a>
<a class="item" href="https://gitpot.dev" rel="noopener noreferrer" target="_blank" tabindex="0">
<a class="item" href="https://gitpot.org" rel="noopener noreferrer" target="_blank" tabindex="0">
<div class="thumbnail"><img src="assets/logos/gitpot-color.svg" alt="Gitpot Logo" /></div>
<div class="item-details">
<h2>Gitpot</h2>
<p class="item-description">Code so sweet, bugs can't compete! A Forgejo-powered git forge which is part of the Lunivity Circle.</p>
</div>
</a>
<a class="item" href="https://gitpot.dev/dashinit/cli" rel="noopener noreferrer" target="_blank" tabindex="0">
<a class="item" href="https://gitpot.org/dashinit/cli" rel="noopener noreferrer" target="_blank" tabindex="0">
<div class="thumbnail"><img src="assets/logos/dashinit.svg" alt="dashinit Logo" /></div>
<div class="item-details">
<h2>dashinit</h2>

View file

@ -1,7 +1,7 @@
<script>
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
let projectLogo = "assets/logos/sangefault.svg";
let projectReadme = "https://gitpot.dev/sangelo/SangeFault/raw/branch/1.8.9/README.md";
let projectReadme = "https://gitpot.org/sangelo/SangeFault/raw/branch/1.8.9/README.md";
let projectSite = "https://github.com/SangeloDev/SangeFault";
</script>

View file

@ -1,8 +1,8 @@
<script>
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
let projectLogo = "assets/logos/sangelos-space-website.svg";
let projectReadme = "https://gitpot.dev/sangelo/website/raw/branch/main/README.md";
let projectSite = "https://gitpot.dev/sangelo/website";
let projectReadme = "https://gitpot.org/sangelo/website/raw/branch/main/README.md";
let projectSite = "https://gitpot.org/sangelo/website";
</script>
<content>