@@ -1,7 +1,7 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- feature/oci-cd
|
||||
schedule:
|
||||
- cron: '@weekly' # once per week
|
||||
|
||||
@@ -23,6 +23,30 @@ jobs:
|
||||
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" <<EOF
|
||||
{
|
||||
"auths": {
|
||||
"${{ inputs.registry_addr }}": {
|
||||
"auth": "$AUTH"
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
- name: Build and push Image
|
||||
uses: ./.gitea/limbo_actions/buildkit-build-push
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user