fix: modify docker load command in nix.yaml workflow
- Change the docker load command to include -i flag which specifies the input file from which to load the image/archive. This corrects the formation of the IMAGE_TAG.
This commit is contained in:
parent
82d0bbb437
commit
ca3c611075
|
@ -8,7 +8,7 @@ jobs:
|
|||
- name: upload image
|
||||
run: |
|
||||
docker login -u ${{ secrets.REG_USER }} -p ${{ secrets.REG_TOKEN }} ${{ secrets.CI_REGISTRY }}
|
||||
export IMAGE_TAG=$(docker load < result | grep -Po 'Loaded image.*: \K.*')
|
||||
export IMAGE_TAG=$(docker load -i result | grep -Po 'Loaded image.*: \K.*')
|
||||
echo "Pushing image ${IMAGE_TAG}"
|
||||
docker tag "${IMAGE_TAG}" "${{ secrets.CI_REGISTRY }}/${{ secrets.REG_USER }}/nix-runner:latest"
|
||||
docker push "${{ secrets.CI_REGISTRY }}/${{ secrets.REG_USER }}/nix-runner:latest"
|
||||
|
|
Loading…
Reference in a new issue