File: build-docker

package info (click to toggle)
teg 0.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,036 kB
  • sloc: cpp: 16,819; xml: 1,313; makefile: 268; sh: 195; ansic: 112
file content (13 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -euo pipefail

VERSIONS=(debian:10/d10 ubuntu:latest/ul)

for VSPEC in "${VERSIONS[@]}"
do
	VERSION=${VSPEC%/*}
	REGISTRY_TAG=${VSPEC##*/}
	sed -e "s/@IMAGEBASE@/$VERSION/" debian | docker build -t ranft/teg:$REGISTRY_TAG -
	docker push ranft/teg:$REGISTRY_TAG
done