Skip to content

Commit

Permalink
ci: Fix docker step name
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored Sep 23, 2024
1 parent 5ef3d86 commit aed8b57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
runs-on: x86_64-linux
outputs:
image_name: ${{ steps.image_info.outputs.image_name }}
docker-image-name: ${{ steps.docker.outputs.image_name }}
steps:
- uses: actions/checkout@v4
- uses: cachix/cachix-action@v15
Expand All @@ -23,6 +23,7 @@ jobs:
run: om ci

- name: Docker tasks
id: docker
if: github.ref == 'refs/heads/main'
run: |
nix build .#dockerImage -o docker-image.tgz
Expand Down Expand Up @@ -50,5 +51,5 @@ jobs:
run: |
echo "$GITHUB_TOKEN" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
docker load < docker-image.tgz
docker push ${{ needs.build.outputs.image_name }}
docker push ${{ needs.build.outputs.docker-image-name }}
docker logout ghcr.io

0 comments on commit aed8b57

Please sign in to comment.