Merge pull request #4292 from black-river-software/black-river-software/docker-tag-latest

build: tag docker image as "latest"
This commit is contained in:
Jared Tobin 2021-01-15 10:26:15 +04:00 committed by GitHub
commit 72834a6ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,4 +40,8 @@ jobs:
- run: |
version="$(cat ./pkg/urbit/version)"
$(nix-build -A skopeo)/bin/skopeo --insecure-policy copy tarball:$(nix-build -A docker-image) docker://${{ secrets.DOCKERHUB_USERNAME }}/urbit:v$version
skopeo="$(nix-build -A skopeo)/bin/skopeo"
image="$(nix-build -A docker-image)"
$skopeo --insecure-policy copy tarball:$docker docker://${{ secrets.DOCKERHUB_USERNAME }}/urbit:v$version
# Apply 'latest' tag. This won't re-copy any layers since layers are checked by hash before copying
$skopeo --insecure-policy copy tarball:$docker docker://${{ secrets.DOCKERHUB_USERNAME }}/urbit:latest