We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a944dc commit bfe6b09Copy full SHA for bfe6b09
.github/workflows/build-docker.yml
@@ -51,7 +51,12 @@ jobs:
51
username: "${{ github.repository_owner }}"
52
password: "${{ secrets.GITHUB_TOKEN }}"
53
54
+ - name: Build
55
+ if: github.event_name == 'pull_request'
56
+ run: nix build --ignore-environment --keep PATH --keep IMAGE_NAME
57
+
58
- name: Build and publish docker image
59
+ if: github.event_name != 'pull_request'
60
run: nix develop .#docker --ignore-environment --keep PATH --keep IMAGE_NAME --command publish "${{ steps.meta.outputs.tags }}"
61
env:
62
IMAGE_NAME: "${{ env.IMAGE_NAME }}"
0 commit comments