ci: use kaniko executor for docker builds
Some checks failed
CI/CD / typecheck (push) Successful in 42s
CI/CD / test (push) Successful in 54s
CI/CD / lint (push) Successful in 10m49s
CI/CD / build (push) Successful in 1m13s
CI/CD / docker (push) Failing after 23s
CI/CD / publish-rpm (push) Successful in 36s
CI/CD / deploy (push) Has been skipped
Some checks failed
CI/CD / typecheck (push) Successful in 42s
CI/CD / test (push) Successful in 54s
CI/CD / lint (push) Successful in 10m49s
CI/CD / build (push) Successful in 1m13s
CI/CD / docker (push) Failing after 23s
CI/CD / publish-rpm (push) Successful in 36s
CI/CD / deploy (push) Has been skipped
Docker, podman, and buildah all fail in the runner container due to missing /proc/self/uid_map (no user namespace support). Kaniko is designed specifically for building Docker images inside containers without privileged access, Docker daemon, or user namespaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -150,44 +150,40 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install buildah and skopeo
|
- name: Install kaniko
|
||||||
run: sudo apt-get update && sudo apt-get install -y buildah skopeo
|
run: |
|
||||||
|
curl -sL "https://github.com/GoogleContainerTools/kaniko/releases/download/v1.23.2/executor-v1.23.2-linux-amd64.tar.gz" \
|
||||||
|
-o /tmp/kaniko.tar.gz
|
||||||
|
sudo tar xzf /tmp/kaniko.tar.gz -C /usr/local/bin executor
|
||||||
|
sudo chmod +x /usr/local/bin/executor
|
||||||
|
|
||||||
- name: Build & push mcpd
|
- name: Build & push mcpd
|
||||||
run: |
|
run: |
|
||||||
buildah build --isolation chroot --storage-driver vfs \
|
executor --dockerfile=deploy/Dockerfile.mcpd \
|
||||||
-t mcpd:latest -f deploy/Dockerfile.mcpd .
|
--context=dir://. \
|
||||||
skopeo copy --src-tls-verify=false --dest-tls-verify=false \
|
--destination=${{ env.REGISTRY }}/${{ env.OWNER }}/mcpd:latest \
|
||||||
--dest-creds "${{ env.OWNER }}:${{ secrets.PACKAGES_TOKEN }}" \
|
--insecure --skip-tls-verify
|
||||||
containers-storage:[vfs@/var/lib/containers/storage]mcpd:latest \
|
|
||||||
docker://${{ env.REGISTRY }}/${{ env.OWNER }}/mcpd:latest
|
|
||||||
|
|
||||||
- name: Build & push node-runner
|
- name: Build & push node-runner
|
||||||
run: |
|
run: |
|
||||||
buildah build --isolation chroot --storage-driver vfs \
|
executor --dockerfile=deploy/Dockerfile.node-runner \
|
||||||
-t node-runner:latest -f deploy/Dockerfile.node-runner .
|
--context=dir://. \
|
||||||
skopeo copy --src-tls-verify=false --dest-tls-verify=false \
|
--destination=${{ env.REGISTRY }}/${{ env.OWNER }}/mcpctl-node-runner:latest \
|
||||||
--dest-creds "${{ env.OWNER }}:${{ secrets.PACKAGES_TOKEN }}" \
|
--insecure --skip-tls-verify
|
||||||
containers-storage:[vfs@/var/lib/containers/storage]node-runner:latest \
|
|
||||||
docker://${{ env.REGISTRY }}/${{ env.OWNER }}/mcpctl-node-runner:latest
|
|
||||||
|
|
||||||
- name: Build & push python-runner
|
- name: Build & push python-runner
|
||||||
run: |
|
run: |
|
||||||
buildah build --isolation chroot --storage-driver vfs \
|
executor --dockerfile=deploy/Dockerfile.python-runner \
|
||||||
-t python-runner:latest -f deploy/Dockerfile.python-runner .
|
--context=dir://. \
|
||||||
skopeo copy --src-tls-verify=false --dest-tls-verify=false \
|
--destination=${{ env.REGISTRY }}/${{ env.OWNER }}/mcpctl-python-runner:latest \
|
||||||
--dest-creds "${{ env.OWNER }}:${{ secrets.PACKAGES_TOKEN }}" \
|
--insecure --skip-tls-verify
|
||||||
containers-storage:[vfs@/var/lib/containers/storage]python-runner:latest \
|
|
||||||
docker://${{ env.REGISTRY }}/${{ env.OWNER }}/mcpctl-python-runner:latest
|
|
||||||
|
|
||||||
- name: Build & push docmost-mcp
|
- name: Build & push docmost-mcp
|
||||||
run: |
|
run: |
|
||||||
buildah build --isolation chroot --storage-driver vfs \
|
executor --dockerfile=deploy/Dockerfile.docmost-mcp \
|
||||||
-t docmost-mcp:latest -f deploy/Dockerfile.docmost-mcp .
|
--context=dir://. \
|
||||||
skopeo copy --src-tls-verify=false --dest-tls-verify=false \
|
--destination=${{ env.REGISTRY }}/${{ env.OWNER }}/docmost-mcp:latest \
|
||||||
--dest-creds "${{ env.OWNER }}:${{ secrets.PACKAGES_TOKEN }}" \
|
--insecure --skip-tls-verify
|
||||||
containers-storage:[vfs@/var/lib/containers/storage]docmost-mcp:latest \
|
|
||||||
docker://${{ env.REGISTRY }}/${{ env.OWNER }}/docmost-mcp:latest
|
|
||||||
|
|
||||||
- name: Link packages to repository
|
- name: Link packages to repository
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user