ci: probe kaniko (throw-away branch)
All checks were successful
probe / kaniko (push) Successful in 38s
All checks were successful
probe / kaniko (push) Successful in 38s
This commit is contained in:
parent
5eb7183faa
commit
c4c934c0d2
1 changed files with 8 additions and 18 deletions
|
|
@ -3,24 +3,14 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ci/probe]
|
branches: [ci/probe]
|
||||||
jobs:
|
jobs:
|
||||||
docker-label:
|
kaniko:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Kaniko starts, and can read the repository by itself
|
||||||
- name: Look around and write it down
|
|
||||||
env:
|
|
||||||
TOKEN: ${{ github.token }}
|
|
||||||
run: |
|
run: |
|
||||||
{
|
/kaniko/executor version
|
||||||
echo "label: docker"; uname -a; head -2 /etc/os-release
|
echo "can reach the forge: $(wget -q -O /dev/null --spider https://git.kmalloc.org/squid/sonda && echo yes || echo no)"
|
||||||
echo "node: $(node -v 2>&1)"; echo "npm: $(npm -v 2>&1)"
|
echo "git clone context test:"
|
||||||
echo "docker: $(docker version --format '{{.Client.Version}} / server {{.Server.Version}}' 2>&1 | head -3)"
|
/kaniko/executor --no-push --dockerfile Dockerfile --context git://git.kmalloc.org/squid/sonda.git#refs/heads/main --target web --tar-path /tmp/web.tar --verbosity info 2>&1 | tail -5
|
||||||
echo "git: $(git --version)"; echo "user: $(id -un)"; echo "socket: $(ls -la /var/run/docker.sock 2>&1)"
|
|
||||||
echo "buildx: $(docker buildx version 2>&1 | head -1)"
|
|
||||||
echo "server_url: ${{ github.server_url }}"; echo "repo: ${{ github.repository }}"
|
|
||||||
echo "cpus: $(nproc) mem: $(free -m | awk '/Mem/{print $2" MB"}') disk: $(df -h / | tail -1 | awk '{print $4" free"}')"
|
|
||||||
echo "registry reachable: $(curl -s -o /dev/null -w '%{http_code}' https://git.kmalloc.org/v2/)"
|
|
||||||
} > probe-result.txt 2>&1
|
|
||||||
git config user.name probe; git config user.email probe@example.org
|
|
||||||
git add -f probe-result.txt && git commit -q -m "ci: probe result" || true
|
|
||||||
git push "https://x-access-token:${TOKEN}@git.kmalloc.org/squid/sonda.git" HEAD:refs/heads/ci/probe-result 2>&1 | tail -2 || true
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue