name: Nightly image on: schedule: - cron: "17 2 * * *" workflow_dispatch: permissions: contents: read packages: write jobs: nightly: if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Image name id: image run: echo "name=ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/titano-server" >> "$GITHUB_OUTPUT" - uses: docker/build-push-action@v6 with: context: . file: deploy/docker/Dockerfile platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.image.outputs.name }}:nightly build-args: TITANO_VERSION=0.0.0-nightly.${{ github.run_number }} cache-from: type=gha cache-to: type=gha,mode=max