mirror of
https://github.com/mikenye/docker-picard.git
synced 2026-04-21 00:05:37 +02:00
17 lines
514 B
Bash
Executable File
17 lines
514 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#shellcheck shell=bash
|
|
|
|
REPO=mikenye
|
|
IMAGE=picard
|
|
|
|
# Build latest
|
|
docker image rm jlesage/baseimage-gui:ubuntu-18.04
|
|
docker buildx build --no-cache -f Dockerfile --push -t "${REPO}/${IMAGE}:latest" .
|
|
|
|
# Get version
|
|
docker pull "${REPO}/${IMAGE}:latest"
|
|
VERSION=$(docker run --rm --entrypoint picard "${REPO}/${IMAGE}:latest" -V | tail -1 | tr -s " " | cut -d " " -f 2 | tr -d ",")
|
|
|
|
# Build version specific
|
|
docker buildx build --no-cache -f Dockerfile --push -t "${REPO}/${IMAGE}:${VERSION}" .
|