docker-tag-yoinker

command module
v0.0.0-...-42bff0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 12 Imported by: 0

README

Docker Tag Yoinker

Travis Release Total Downloads Software License Go Report Card

Sometimes, you just want to yoink the latest tag of a docker image, but :latest is too Basic for you.

dty (docker-tag-yoinker) is here to help.

Simply set up a config file, and the binary will auto-yoink the latest tag that satisfies your rules.

Example

TOML Config:

image = "sourcegraph/server"
blacklist = ["insiders", "rc"]

This will pull the latest tag from https://hub.docker.com/r/sourcegraph/server/tags that doesn't have "insiders" or "rc" in it and print it to STDOUT.

Usage in shell scripts.

export TAG=$(dty -config sourcegraph.toml)
docker run --name sourcegraph \
      --restart=always -d --publish 8220:7080 --publish 2633:2633 \
      --volume ~/.sourcegraph/config:/etc/sourcegraph  \
      --volume ~/.sourcegraph/data:/var/opt/sourcegraph  \
      sourcegraph/server:$TAG \

This can be run inside a cron job, wired up to https://healthchecks.io/ or equivalent.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL