mirror of
https://github.com/Retropex/docker-bitcoind-prebuilt.git
synced 2025-05-12 19:20:48 +02:00
Alias latest tag to latest release
This commit is contained in:
parent
46842c0a4e
commit
2761544231
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -2,6 +2,7 @@ name: Build Docker Image
|
||||
on: push
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
LATEST_TAG: 0.19.0.1
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
@ -75,6 +76,10 @@ jobs:
|
||||
versions=$(docker images lukechilds/bitcoind --format "{{.Tag}}" | grep amd64 | cut -d- -f1)
|
||||
for version in $versions; do
|
||||
tags=$(docker images lukechilds/bitcoind --format "{{.Tag}}" | grep $version- | sed 's/^/lukechilds\/bitcoind\:&/')
|
||||
if [[ $version = $LATEST_TAG ]]; then
|
||||
docker manifest create lukechilds/bitcoind:latest $tags
|
||||
docker manifest push lukechilds/bitcoind:latest
|
||||
fi
|
||||
docker manifest create "lukechilds/bitcoind:${version}" $tags
|
||||
docker manifest push "lukechilds/bitcoind:${version}"
|
||||
docker manifest inspect "lukechilds/bitcoind:${version}"
|
||||
|
Loading…
Reference in New Issue
Block a user