Skip to content

Commit

Permalink
ci: fix docker push
Browse files Browse the repository at this point in the history
docker does not support pushing and tagging with a different name in one
go as podman does.

Signed-off-by: Harald Hoyer <[email protected]>
  • Loading branch information
haraldh committed Feb 15, 2024
1 parent d22b00d commit ec26f75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ jobs:
export IMAGE_TAG=$(docker load < result | grep -Po 'Loaded image.*: \K.*')
echo "Pushing image ${IMAGE_TAG} to Docker Hub"
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
docker push "${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG}"
docker push "${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG%:*}:latest"
docker tag "${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG}"
docker push matterlabsrobot/"${IMAGE_TAG}"
docker tag matterlabsrobot/"${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG%:*}:latest"
docker push matterlabsrobot/"${IMAGE_TAG%:*}:latest"

0 comments on commit ec26f75

Please sign in to comment.