Updates galore

This commit is contained in:
2026-01-30 20:35:04 -03:00
parent a67c8df879
commit 2600d27cbd
4 changed files with 79 additions and 27 deletions

View File

@@ -14,14 +14,14 @@ steps:
- name: build
image: docker:latest
environment:
REGISTRY_REPO: ${REGISTRY_REPO}
REGISTRY_REPO: git.mifi.dev/mifi-ventures/landing
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- set -e # Exit on error
- echo "=== Building Docker image ==="
- echo "Commit SHA: ${CI_COMMIT_SHA:0:8}"
- echo "Registry repo: $REGISTRY_REPO"
- 'echo "Commit SHA: ${CI_COMMIT_SHA:0:8}"'
- 'echo "Registry repo: $REGISTRY_REPO"'
- |
docker build \
--tag $REGISTRY_REPO:${CI_COMMIT_SHA} \
@@ -37,9 +37,10 @@ steps:
- name: push
image: docker:latest
environment:
REGISTRY_URL: ${REGISTRY_URL}
REGISTRY_REPO: ${REGISTRY_REPO}
REGISTRY_USERNAME: ${REGISTRY_USERNAME}
REGISTRY_URL: git.mifi.dev
REGISTRY_REPO: git.mifi.dev/mifi-ventures/landing
REGISTRY_USERNAME:
from_secret: registry_username
REGISTRY_PASSWORD:
from_secret: registry_password
volumes:
@@ -47,8 +48,8 @@ steps:
commands:
- set -e # Exit on error
- echo "=== Pushing to registry ==="
- echo "Registry: $REGISTRY_URL"
- echo "Repository: $REGISTRY_REPO"
- 'echo "Registry: $REGISTRY_URL"'
- 'echo "Repository: $REGISTRY_REPO"'
- |
echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY_URL" \
-u "$REGISTRY_USERNAME" \
@@ -86,14 +87,14 @@ steps:
# Configuration Reference
# ============================================
#
# Required Secrets (set in Woodpecker UI):
# - registry_password: Gitea container registry password/token
# Woodpecker has no separate "Variables" UI — use Secrets for everything.
#
# Required Secrets (Repo → Settings → Secrets):
# - registry_username: Your Gitea username (used for docker login)
# - registry_password: Gitea container registry password or token
# - portainer_webhook_url: Portainer stack webhook URL (Redeploy trigger)
#
# Required Environment Variables (Gitea registry):
# - REGISTRY_URL: git.mifi.dev
# - REGISTRY_REPO: git.mifi.dev/mifi-ventures/landing
# - REGISTRY_USERNAME: your Gitea username
# REGISTRY_URL and REGISTRY_REPO are set in this file (above).
#
# Portainer: Add stack from "Git repository" with this repo, compose path
# docker-compose.yml. Enable GitOps → Webhook and "Re-pull image".