Compare commits
No commits in common. "main" and "feat/radio" have entirely different histories.
main
...
feat/radio
5 changed files with 10 additions and 58 deletions
|
|
@ -13,9 +13,10 @@ jobs:
|
|||
run: |
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | podman login git.interhacker.space --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build and Push Container Image
|
||||
- name: Build Container Image
|
||||
run: |
|
||||
trap 'rm -f dist.zip' EXIT
|
||||
wget -q -O dist.zip https://git.interhacker.space/epickiwi/2026.camp.carte/releases/download/latest/dist.zip
|
||||
podman build -t git.interhacker.space/interhack/camp-website-2026:latest .
|
||||
|
||||
- name: Push Container Image
|
||||
run: |
|
||||
podman push git.interhacker.space/interhack/camp-website-2026:latest
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1 @@
|
|||
guide.html
|
||||
dist.zip
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
FROM docker.io/nginx:1.29-alpine
|
||||
|
||||
RUN apk add --update --no-cache unzip bash pandoc sed
|
||||
RUN apk add --update --no-cache wget unzip bash pandoc sed
|
||||
|
||||
COPY dist.zip /tmp/dist.zip
|
||||
RUN unzip -q /tmp/dist.zip -d /tmp/carte
|
||||
RUN wget -q https://git.interhacker.space/epickiwi/2026.camp.carte/releases/download/latest/dist.zip
|
||||
RUN unzip -q dist.zip -d /tmp/carte
|
||||
RUN mkdir -p /usr/share/nginx/html/carte
|
||||
RUN cp -r /tmp/carte/dist/* /usr/share/nginx/html/carte/
|
||||
RUN rm -rf /tmp/carte /tmp/dist.zip
|
||||
RUN rm -rf /tmp/carte
|
||||
RUN rm -rf dist.zip
|
||||
|
||||
COPY guide.template.html .
|
||||
COPY update-guide.sh .
|
||||
|
|
|
|||
|
|
@ -40,13 +40,11 @@ First, login to the Docker registry:
|
|||
docker login git.interhacker.space
|
||||
```
|
||||
|
||||
Then, download the map bundle, build and push to the registry:
|
||||
Then, build and push to the registry:
|
||||
|
||||
```bash
|
||||
wget -q -O dist.zip https://git.interhacker.space/epickiwi/2026.camp.carte/releases/download/latest/dist.zip
|
||||
docker build -t git.interhacker.space/interhack/camp-website-2026:latest .
|
||||
docker push git.interhacker.space/interhack/camp-website-2026:latest
|
||||
rm -f dist.zip
|
||||
```
|
||||
|
||||
The pull process is triggered every five minutes.
|
||||
|
|
|
|||
47
manual-ci.sh
47
manual-ci.sh
|
|
@ -1,47 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
IMAGE="git.interhacker.space/interhack/camp-website-2026:latest"
|
||||
REGISTRY="git.interhacker.space"
|
||||
|
||||
need_cmd() {
|
||||
command -v "$1" >/dev/null 2>&1 || {
|
||||
echo "Missing required command: $1" >&2
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
need_cmd bash
|
||||
need_cmd wget
|
||||
need_cmd pandoc
|
||||
need_cmd docker
|
||||
|
||||
if [[ ! -x ./update-guide.sh ]]; then
|
||||
echo "Missing or non-executable ./update-guide.sh" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "==> Generating guide.html"
|
||||
bash ./update-guide.sh
|
||||
|
||||
trap 'rm -f dist.zip' EXIT
|
||||
|
||||
echo "==> Downloading map bundle"
|
||||
wget -q -O dist.zip https://git.interhacker.space/epickiwi/2026.camp.carte/releases/download/latest/dist.zip
|
||||
|
||||
echo "==> Logging in to ${REGISTRY}"
|
||||
if [[ -n "${DOCKER_USERNAME:-}" && -n "${DOCKER_PASSWORD:-}" ]]; then
|
||||
printf '%s' "$DOCKER_PASSWORD" | docker login "$REGISTRY" --username "$DOCKER_USERNAME" --password-stdin
|
||||
else
|
||||
docker login "$REGISTRY"
|
||||
fi
|
||||
|
||||
echo "==> Building image: ${IMAGE}"
|
||||
docker build --no-cache -t "$IMAGE" .
|
||||
|
||||
echo "==> Pushing image: ${IMAGE}"
|
||||
docker push "$IMAGE"
|
||||
|
||||
rm -f dist.zip
|
||||
|
||||
echo "Done."
|
||||
Loading…
Add table
Add a link
Reference in a new issue