fix relative path #15
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
name: Build Docker Image With Nix Shell | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-ubuntu-24-04: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set up Nix | |
uses: cachix/install-nix-action@v27 | |
- name: Build Docker image | |
run: | | |
./.local/share/bin/init-nix.sh | |
nix-build .config/nix/docker.nix | |
- name: Load Docker image | |
run: | | |
./result | docker load | |
- name: Push Docker image | |
run: docker push nuhotetotniksvoboden/bashrc:latest | |
- name: Remove Nix Garbage | |
run: nix-collect-garbage -d |