on: workflow_dispatch: jobs: build: runs-on: docker container: image: alpine:latest steps: - name: install dependencies run: | apk add --no-cache git nodejs docker qemu openrc rc-update add docker default - 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: checkout uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 with: platforms: "amd64,arm64" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build and push Docker image env: DOCKER_REGISTRY: docker.registry.jk-effects.cloud DOCKER_IMAGE_NAME: ehrenamt/member-administration/ui run: | docker buildx build \ -t $DOCKER_REGISTRY/$DOCKER_IMAGE_NAME:latest \ --platform linux/amd64,linux/arm64 -f /Dockerfile . docker push $DOCKER_REGISTRY/$DOCKER_IMAGE_NAME:latest