From 606f39cb00766e5be46b38e3c3034e702c3795e6 Mon Sep 17 00:00:00 2001 From: Mateus Cruz Date: Tue, 6 Feb 2024 03:08:10 -0300 Subject: chore: rename app --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b983ab9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: 'Build' +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + build: + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + - uses: DeterminateSystems/magic-nix-cache-action@v2 + - run: nix build -L .#docker + - run: nix develop -L -c dune runtest + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - run: docker load < result + - run: docker push ghcr.io/molvrr/combattant:latest -- cgit v1.2.3