[c] Migrate to gitpot.org
All checks were successful
Build and push docker image / deploy (push) Successful in 1m11s
All checks were successful
Build and push docker image / deploy (push) Successful in 1m11s
This commit is contained in:
parent
e682a4ca4f
commit
a00a1df43d
13 changed files with 24 additions and 24 deletions
|
@ -38,11 +38,11 @@ jobs:
|
||||||
- name: 🐳 Publish Container
|
- name: 🐳 Publish Container
|
||||||
run: |
|
run: |
|
||||||
export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
|
export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
|
||||||
echo "${{ secrets.PUBLISH_TOKEN }}" | docker login gitpot.dev -u sangelo --password-stdin
|
echo "${{ secrets.PUBLISH_TOKEN }}" | docker login gitpot.org -u sangelo --password-stdin
|
||||||
docker push "gitpot.dev/sangelo/website:${TAG}"
|
docker push "gitpot.org/sangelo/website:${TAG}"
|
||||||
|
|
||||||
# publish tag latest as well
|
# publish tag latest as well
|
||||||
if echo "${{ github.ref }}" | grep -q "refs/tags/"; then
|
if echo "${{ github.ref }}" | grep -q "refs/tags/"; then
|
||||||
docker tag "gitpot.dev/sangelo/website:${TAG}" "gitpot.dev/sangelo/website:latest"
|
docker tag "gitpot.org/sangelo/website:${TAG}" "gitpot.org/sangelo/website:latest"
|
||||||
docker push "gitpot.dev/sangelo/website:latest"
|
docker push "gitpot.org/sangelo/website:latest"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -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.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.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.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.vendor="Sangelo"
|
||||||
LABEL org.opencontainers.image.licenses="GPL-v3"
|
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
|
# Remove intermediate images after build
|
||||||
ONBUILD RUN rm -rf /app
|
ONBUILD RUN rm -rf /app
|
||||||
|
|
6
Justfile
6
Justfile
|
@ -4,7 +4,7 @@ set dotenv-load
|
||||||
# defaults
|
# defaults
|
||||||
default_runner := 'docker'
|
default_runner := 'docker'
|
||||||
default_tag := 'latest'
|
default_tag := 'latest'
|
||||||
default_image := 'gitpot.dev/sangelo/website:latest'
|
default_image := 'gitpot.org/sangelo/website:latest'
|
||||||
|
|
||||||
# run development server by default
|
# run development server by default
|
||||||
default: dev
|
default: dev
|
||||||
|
@ -37,7 +37,7 @@ clean runner=default_runner tag=default_tag:
|
||||||
_clean_images runner=default_runner:
|
_clean_images runner=default_runner:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
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
|
if [ -n "$image_ids" ]; then
|
||||||
for image_id in $image_ids; do
|
for image_id in $image_ids; do
|
||||||
{{runner}} image rm $image_id
|
{{runner}} image rm $image_id
|
||||||
|
@ -61,7 +61,7 @@ run tag=default_tag runner=default_runner:
|
||||||
publish image=default_image runner=default_runner:
|
publish image=default_image runner=default_runner:
|
||||||
@echo "Publishing with '{{runner}}'..."
|
@echo "Publishing with '{{runner}}'..."
|
||||||
@# log into gitpot
|
@# 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
|
@# push the specified image to the container registry
|
||||||
{{runner}} push {{image}}
|
{{runner}} push {{image}}
|
||||||
@echo "Published {{image}} successfuly! Use '{{runner}} pull {{image}}' to pull the container."
|
@echo "Published {{image}} successfuly! Use '{{runner}} pull {{image}}' to pull the container."
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: gitpot.dev/sangelo/website:${TAG}
|
image: gitpot.org/sangelo/website:${TAG}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
|
@ -7,7 +7,7 @@ services:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
website:
|
website:
|
||||||
image: gitpot.dev/sangelo/website:latest
|
image: gitpot.org/sangelo/website:latest
|
||||||
container_name: website
|
container_name: website
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="tooltip">
|
<div class="tooltip">
|
||||||
<a
|
<a
|
||||||
href="https://gitpot.dev/sangelo"
|
href="https://gitpot.org/sangelo"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer me"
|
rel="noopener noreferrer me"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
||||||
let projectLogo = "assets/logos/dashinit.svg";
|
let projectLogo = "assets/logos/dashinit.svg";
|
||||||
let projectReadme = "https://gitpot.dev/dashinit/cli/raw/branch/main/README.md";
|
let projectReadme = "https://gitpot.org/dashinit/cli/raw/branch/main/README.md";
|
||||||
let projectSite = "https://gitpot.dev/dashinit/cli";
|
let projectSite = "https://gitpot.org/dashinit/cli";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<content>
|
<content>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
||||||
let projectLogo = "assets/logos/explorecraft.svg";
|
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";
|
let projectSite = "https://explorecraft.net";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
||||||
let projectLogo = "assets/logos/gitpot-color.svg";
|
let projectLogo = "assets/logos/gitpot-color.svg";
|
||||||
let projectReadme = "https://gitpot.dev/gitpot/.profile/raw/branch/main/README.md";
|
let projectReadme = "https://gitpot.org/gitpot/.profile/raw/branch/main/README.md";
|
||||||
let projectSite = "https://gitpot.dev"
|
let projectSite = "https://gitpot.org"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<content>
|
<content>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
||||||
let projectLogo = "assets/logos/lunivity.svg";
|
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"
|
let projectSite = "https://lunivity.com"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<h1 class="modal-title no-select">All Projects</h1>
|
<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>
|
<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">
|
<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="thumbnail"><img src="assets/logos/sangelos-space-website.svg" alt="Sangelo's Logo" /></div>
|
||||||
<div class="item-details">
|
<div class="item-details">
|
||||||
<h2>Sangelo's Space</h2>
|
<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>
|
<p class="item-description">Open-source by nature, self-hosted by choice. Self-hosted cloud services.</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</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="thumbnail"><img src="assets/logos/gitpot-color.svg" alt="Gitpot Logo" /></div>
|
||||||
<div class="item-details">
|
<div class="item-details">
|
||||||
<h2>Gitpot</h2>
|
<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>
|
<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>
|
</div>
|
||||||
</a>
|
</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="thumbnail"><img src="assets/logos/dashinit.svg" alt="dashinit Logo" /></div>
|
||||||
<div class="item-details">
|
<div class="item-details">
|
||||||
<h2>dashinit</h2>
|
<h2>dashinit</h2>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
||||||
let projectLogo = "assets/logos/sangefault.svg";
|
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";
|
let projectSite = "https://github.com/SangeloDev/SangeFault";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
import IconOpenInNew from 'svelte-material-icons/OpenInNew.svelte';
|
||||||
let projectLogo = "assets/logos/sangelos-space-website.svg";
|
let projectLogo = "assets/logos/sangelos-space-website.svg";
|
||||||
let projectReadme = "https://gitpot.dev/sangelo/website/raw/branch/main/README.md";
|
let projectReadme = "https://gitpot.org/sangelo/website/raw/branch/main/README.md";
|
||||||
let projectSite = "https://gitpot.dev/sangelo/website";
|
let projectSite = "https://gitpot.org/sangelo/website";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<content>
|
<content>
|
||||||
|
|
Loading…
Reference in a new issue