name: "Build Runner Base" on: schedule: - cron: "0 0 * * *" push: branches: - "master" jobs: build_act: runs-on: "docker" env: DOCKER_HOST: tcp://docker:2376 steps: - name: install docker run: sudo apk add docker - name: Wait for Docker daemon run: | timeout=300 # Set a timeout value in seconds until docker info; do echo "Waiting for Docker daemon to start..." sleep 5 timeout=$((timeout-5)) if [ $timeout -le 0 ]; then echo "Timeout waiting for Docker daemon to start." exit 1 fi done - name: A run: | apk add net-tools netstat -tuln - name: Install Node run: apk add nodejs - name: Set up QEMU uses: "https://git.euph.dev/actions/docker-setup-qemu@v3" - name: Setup Buildx uses: "https://git.euph.dev/actions/docker-setup-buildx@v3" - name: Login to Registry uses: "https://git.euph.dev/actions/docker-login@v3" with: registry: git.euph.dev username: ${{ secrets.DEPLOY_USER }} password: ${{ secrets.DEPLOY_SECRET }} - name: Build and push act base image id: build_act_base uses: "https://git.euph.dev/actions/docker-build-push@v5" with: context: "{{defaultContext}}:images/actions/act" push: true tags: | git.euph.dev/actions/runner-basic:latest git.euph.dev/actions/runner-basic:${{ forgejo.run_number }}