fix enter handling #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: Publish demo image | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["v*"] | |
| jobs: | |
| build-push: | |
| strategy: | |
| matrix: | |
| include: | |
| - runner: blacksmith-4vcpu-ubuntu-2404 | |
| arch: amd64 | |
| - runner: blacksmith-4vcpu-ubuntu-2404-arm | |
| arch: arm64 | |
| runs-on: ${{ matrix.runner }} | |
| env: | |
| DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - name: Push arch-specific image | |
| run: | | |
| if [[ "$GITHUB_REF" == refs/tags/v* ]]; then | |
| nix run .#push-demo -- "${{ matrix.arch }}" "${GITHUB_REF#refs/tags/v}" | |
| else | |
| nix run .#push-demo -- "${{ matrix.arch }}" | |
| fi | |
| manifest: | |
| needs: build-push | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| env: | |
| DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - name: Create and push multi-arch manifest | |
| run: | | |
| if [[ "$GITHUB_REF" == refs/tags/v* ]]; then | |
| nix run .#publish-demo -- "${GITHUB_REF#refs/tags/v}" | |
| else | |
| nix run .#publish-demo | |
| fi |