diff options
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index d0b11dd..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: ci - -on: - push: - paths: - - "**.lock" - - "**.nix" - - "**.rs" - - "**.toml" - - pull_request: - paths: - - "**.lock" - - "**.nix" - - "**.rs" - - "**.toml" - - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - permissions: - contents: read - packages: write - - strategy: - matrix: - output: [teawiebot, container] - - env: - REGISTRY: ghcr.io - - steps: - - uses: actions/checkout@v3 - - - uses: cachix/install-nix-action@v21 - - - uses: cachix/cachix-action@v12 - with: - name: getchoo - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: login to ghcr - if: ${{ matrix.output == 'container' && github.ref == 'refs/heads/main' }} - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: "getchoo" - password: ${{ secrets.GITHUB_TOKEN }} - - - name: build - run: | - nix build --accept-flake-config -L .#${{ matrix.output }} - - - name: upload to ghcr - if: ${{ matrix.output == 'container' && github.ref == 'refs/heads/main' }} - run: | - docker load < result - docker tag teawiebot:latest ghcr.io/getchoo/teawiebot:latest - docker push ghcr.io/getchoo/teawiebot:latest |
