stage0 #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: stage0 | |
| on: workflow_dispatch | |
| jobs: | |
| build-push: | |
| permissions: | |
| packages: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v4 | |
| - | |
| name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - | |
| name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Enable snapshotter | |
| run: | | |
| cat << ENDHERE >/tmp/daemon.json | |
| { | |
| "features": { | |
| "containerd-snapshotter": true | |
| } | |
| } | |
| ENDHERE | |
| sudo mv /tmp/daemon.json /etc/docker/daemon.json | |
| sudo systemctl restart docker | |
| - | |
| name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build stage0 | |
| run: | | |
| make stage0 PROGRESS=plain PLATFORM=linux/386 | |
| - name: Push stage0 | |
| run: | | |
| ./src/publish-pkg.sh bootstrap-stage0 latest |