customer-riverside/.gitea/workflows/ci.yml
Philip Peterson a99e367a49
Some checks failed
Build and push image / build (push) Failing after 4s
CI / build (push) Failing after 3h2m22s
CI / bump-infra (push) Has been cancelled
CI: install Docker from static binary, keep all paths under /tmp
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 19:29:39 -07:00

78 lines
2.5 KiB
YAML

name: CI
on:
push:
branches: [main]
env:
REGISTRY: forge.quinefoundation.com
IMAGE: forge.quinefoundation.com/ironmagma/customer-riverside
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Docker from static binary
run: |
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz \
| tar -xz -C /tmp
echo "/tmp/docker" >> "$GITHUB_PATH"
- name: Start Docker daemon
run: |
mkdir -p /tmp/docker-data /tmp/docker-run
nohup /tmp/docker/dockerd \
--host=unix:///tmp/docker-run/docker.sock \
--data-root=/tmp/docker-data \
&>/tmp/dockerd.log &
echo "DOCKER_HOST=unix:///tmp/docker-run/docker.sock" >> "$GITHUB_ENV"
until /tmp/docker/docker --host=unix:///tmp/docker-run/docker.sock info >/dev/null 2>&1; do
sleep 1
done
- name: Log in to registry
run: |
echo "${{ secrets.FORGE_TOKEN }}" \
| docker login "$REGISTRY" -u "${{ secrets.FORGE_USER }}" --password-stdin
- name: Build and push
run: |
docker build -t "$IMAGE:${{ github.sha }}" .
docker push "$IMAGE:${{ github.sha }}"
bump-infra:
needs: build
runs-on: ubuntu-latest
steps:
- name: Bump riverside in infra repo
env:
FORGE_TOKEN: ${{ secrets.FORGE_TOKEN }}
FORGE_USER: ${{ secrets.FORGE_USER }}
SHA: ${{ github.sha }}
run: |
git clone "https://${FORGE_USER}:${FORGE_TOKEN}@forge.quinefoundation.com/Cold-Air-Networks/petersweb-infra.git" infra
cd infra
BRANCH="bump-riverside-${SHA:0:7}"
git checkout -b "$BRANCH"
./bump-riverside.sh "sha:$SHA"
git config user.email "ci@quinefoundation.com"
git config user.name "CI"
git add -A
git commit -m "bump riverside to ${SHA:0:7}"
git push origin "$BRANCH"
curl -sf -X POST \
-H "Authorization: token $FORGE_TOKEN" \
-H "Content-Type: application/json" \
"https://forge.quinefoundation.com/api/v1/repos/Cold-Air-Networks/petersweb-infra/pulls" \
-d "{
\"title\": \"bump riverside to ${SHA:0:7}\",
\"head\": \"$BRANCH\",
\"base\": \"main\",
\"body\": \"Automated bump from Cold-Air-Networks/customer-riverside@$SHA\"
}"