name: Build and push cimaster image on: push: branches: - "main" paths: - "cimaster/**" - ".forgejo/workflows/cimaster.yaml" # Update image weekly schedule: - cron: "0 0 * * 0" workflow_dispatch: jobs: build: runs-on: cimaster-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3 - name: Login to Container Registry uses: https://github.com/docker/login-action@v3 with: username: thetadev256 password: ${{ secrets.DOCKER_TOKEN }} - name: Build cimaster docker image uses: https://github.com/docker/build-push-action@v6 with: push: true tags: thetadev256/cimaster:latest,thetadev256/cimaster:bookworm platforms: linux/amd64,linux/arm64 context: cimaster file: cimaster/Dockerfile test: runs-on: cimaster-latest needs: build steps: - name: Checkout uses: actions/checkout@v4 - name: Test cimaster run: bash cimaster/test.sh