fix(dashboard): monochrome — the landing page was the fleet's loudest… #146
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: Build | |
| on: | |
| push: | |
| branches: [main, test, dev] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| docker: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - arch: amd64 | |
| runner: '["self-hosted","linux","amd64"]' | |
| - arch: arm64 | |
| runner: '["self-hosted","linux","arm64"]' | |
| runs-on: ${{ fromJSON(matrix.runner) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: docker/setup-buildx-action@v3 | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-${{ matrix.arch }} | |
| cache-from: type=gha,scope=${{ matrix.arch }} | |
| cache-to: type=gha,scope=${{ matrix.arch }},mode=max | |
| manifest: | |
| needs: [docker] | |
| if: always() && contains(needs.docker.result, 'success') | |
| runs-on: lux-build-amd64 | |
| steps: | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/setup-buildx-action@v3 | |
| - run: | | |
| IMAGE="ghcr.io/${{ github.repository }}" | |
| BRANCH="${{ github.ref_name }}" | |
| SOURCES="" | |
| for ARCH in amd64 arm64; do | |
| if docker buildx imagetools inspect "${IMAGE}:${BRANCH}-${ARCH}" >/dev/null 2>&1; then | |
| SOURCES="${SOURCES} ${IMAGE}:${BRANCH}-${ARCH}" | |
| fi | |
| done | |
| [ -z "$SOURCES" ] && exit 1 | |
| for TAG in "${BRANCH}" latest; do | |
| docker buildx imagetools create -t "${IMAGE}:${TAG}" ${SOURCES} | |
| done |