-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#### NOTE: This job is disabled until nix supports the latest cargo workspace features. | ||
#### See: https://github.com/NixOS/nixpkgs/pull/217232 | ||
# | ||
#name: nix-build | ||
#on: | ||
# pull_request: | ||
# push: | ||
# branches: [main, 'release-v**'] | ||
#jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# # Nix Flakes doesn't work on shallow clones | ||
# fetch-depth: 0 | ||
# - uses: cachix/install-nix-action@v17 | ||
# with: | ||
# install_url: https://releases.nixos.org/nix/nix-2.10.3/install | ||
# - uses: cachix/cachix-action@v10 | ||
# with: | ||
# name: centrifuge-chain | ||
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
# - name: Build centrifuge-chain | ||
# run: nix build --no-allow-dirty -L | ||
|
||
# name: docker | ||
# on: | ||
# push: | ||
# branches: [main, 'release-v**'] | ||
# jobs: | ||
# docker: | ||
# strategy: | ||
# matrix: | ||
# os: [ ubuntu-latest ] | ||
# target: [".#dockerImage", ".#dockerImageFastRuntime"] | ||
# runs-on: ${{ matrix.os }} | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# - uses: cachix/install-nix-action@v17 | ||
# with: | ||
# install_url: https://releases.nixos.org/nix/nix-2.10.3/install | ||
# - name: Build Docker image | ||
# run: | | ||
# nix build --no-allow-dirty -L ${{ matrix.target }} | ||
# docker load < result | ||
# - name: Login to Docker Hub | ||
# uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 | ||
# with: | ||
# username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
# password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
# - name: List images | ||
# run: docker images | ||
# - name: Push image to Docker Hub | ||
# run: docker push --all-tags --quiet centrifugeio/centrifuge-chain |