Skip to content

Commit

Permalink
Name the file approriately
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored Sep 23, 2024
1 parent 5cd5bee commit 96bde17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
- name: Docker tasks
if: github.ref == 'refs/heads/main'
run: |
nix build .#dockerImage -o image.tar
nix build .#dockerImage -o docker-image.tgz
echo "image_name=$(nix eval --raw .#dockerImage.imageName):$(nix eval --raw .#dockerImage.imageTag)" >> $GITHUB_OUTPUT
- name: Upload Docker image tarball
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: docker-image
path: image.tar
path: docker-image.tgz

push-docker:
needs: build
Expand All @@ -49,6 +49,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "$GITHUB_TOKEN" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
docker load < image.tar
docker load < docker-image.tgz
docker push ${{ needs.build.outputs.image_name }}
docker logout ghcr.io
docker logout ghcr.io

0 comments on commit 96bde17

Please sign in to comment.