Skip to content

Fix issues around tournament display and expiry #75

Fix issues around tournament display and expiry

Fix issues around tournament display and expiry #75

Workflow file for this run

name: "Docker Image"
on:
push:
env:
REGISTRY: ghcr.io
jobs:
build:
strategy:
fail-fast: false
matrix:
arch:
- x86_64-linux
# Disabled for now due to qemu segfault issue
# - aarch64-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix run -L --system ${{ matrix.arch }} --extra-platforms ${{ matrix.arch }} .#container.copyToDockerDaemon
- name: Log in to the Container registry
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag and push Docker image
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
run: |
TAG=$(nix eval '.#lanparty-seating.version' | sed s/\"//g)
docker tag lanparty-seating:$TAG ghcr.io/otakulan/lanparty-seating/lanparty-seating:$TAG
docker push ghcr.io/otakulan/lanparty-seating/lanparty-seating:$TAG