filter build source to avoid unneeded rebuilds

This commit is contained in:
Robin Appelman 2023-05-28 23:20:48 +02:00
commit 18718f93f4
2 changed files with 11 additions and 4 deletions

View file

@ -56,4 +56,4 @@ jobs:
- name: Push image
if: github.ref == 'refs/heads/main'
run: |
skopeo copy --dest-creds="${{ secrets.DOCKERHUB_USERNAME }}:${{ secrets.DOCKERHUB_TOKEN }}" "docker-archive:$(nix build .#dockerImage --print-out-paths)" "docker://icewind1991/dispenser"
skopeo copy --dest-creds="${{ secrets.DOCKERHUB_USERNAME }}:${{ secrets.DOCKERHUB_TOKEN }}" "docker-archive:$(nix build .#dockerImage --print-out-paths)" "docker://spiretf/dispenser"