add nix image
This commit is contained in:
parent
196ed27c40
commit
ee62a517c7
2 changed files with 6 additions and 2 deletions
4
.github/workflows/build-docker.yml
vendored
4
.github/workflows/build-docker.yml
vendored
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image: [pyenv, nix-example]
|
image: [pyenv, nix-example, nix]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
4
nix/Dockerfile
Normal file
4
nix/Dockerfile
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM nixos/nix:2.25.3
|
||||||
|
RUN echo "nixpkgs.config.allowUnfree = true" >> /etc/nix/nix.conf
|
||||||
|
# enable nix-command and flakes
|
||||||
|
RUN echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||||
Loading…
Add table
Add a link
Reference in a new issue