From 9dd203391ec7345070c82cf8f420520a4ecaf6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 3 May 2026 21:25:07 +0000 Subject: [PATCH] x --- .gitea/workflows/image-deploy.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/image-deploy.yaml b/.gitea/workflows/image-deploy.yaml index c5ac91c..3fe4ef9 100644 --- a/.gitea/workflows/image-deploy.yaml +++ b/.gitea/workflows/image-deploy.yaml @@ -1,7 +1,7 @@ on: push: branches: - - main + - feature/oci-cd schedule: - cron: '@weekly' # once per week @@ -22,6 +22,30 @@ jobs: run: | curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1 + + - name: run buildctl build and push + shell: bash + run: | + set -euo pipefail + DOCKER_CONFIG="${RUNNER_TEMP}/.buildctl_docker" + mkdir -p "$DOCKER_CONFIG" + + # clean up + trap 'rm -rf "$DOCKER_CONFIG"' EXIT + + + USER='${{ secrets.OCI_LIMBO_REGISTRY_DEVCONTAINERS_USERNAME }}' + PASS='${{ secrets.OCI_LIMBO_REGISTRY_DEVCONTAINERS_PASSWORD }}' + AUTH=$(printf '%s:%s' "$USER" "$PASS" | base64 -w0) + cat > "/root/tmp_config.json" <