cleanup for next version

This commit is contained in:
Nicholas St. Germain 2019-01-16 13:12:57 -06:00
parent 46c656219f
commit 106e0534b1
2 changed files with 9 additions and 7 deletions

View file

@ -19,13 +19,15 @@ echo "$DOCKER_PASSWORD" | docker login -u="$DOCKER_USER" --password-stdin
# Latest x64 # Latest x64
docker build -t "${NAMESPACE}:latest" . && \ docker build -t "${NAMESPACE}:latest" . && \
docker push "${NAMESPACE}:latest" && \ docker push "${NAMESPACE}:latest"
# Versioned x64
docker tag "${NAMESPACE}:latest" "${NAMESPACE}:${VERSION}" && \
docker push "${NAMESPACE}:${VERSION}" && \
# x64 Arch # x64 Arch
docker tag "${NAMESPACE}:latest" "${NAMESPACE}:latest-amd64" && \ docker tag "${NAMESPACE}:latest" "${NAMESPACE}:latest-amd64" && \
docker push "${NAMESPACE}:latest-amd64" docker push "${NAMESPACE}:latest-amd64"
# Versioned x64
docker tag "${NAMESPACE}:latest" "${NAMESPACE}:${VERSION}" && \
docker push "${NAMESPACE}:${VERSION}"
docker tag "${NAMESPACE}:latest" "${NAMESPACE}:${VERSION}-amd64" && \
docker push "${NAMESPACE}:${VERSION}-amd64"
# Prepare qemu for ARM builds # Prepare qemu for ARM builds
docker run --rm --privileged multiarch/qemu-user-static:register --reset docker run --rm --privileged multiarch/qemu-user-static:register --reset

View file

@ -4,7 +4,7 @@ from varken import VERSION
org = 'boerderij' org = 'boerderij'
project = 'varken' project = 'varken'
namespace = f"{org}/{project}" namespace = "{}/{}".format(org, project)
yaml_arr = [] yaml_arr = []
tags = ['latest', VERSION] tags = ['latest', VERSION]
@ -17,12 +17,12 @@ arch_list = [('arm', 'arm', 'v6', 'linux'),
for tag in tags: for tag in tags:
yaml_doc = { yaml_doc = {
'image': f'{namespace}:{tag}', 'image': '{}:{}'.format(namespace, tag),
'manifests': [] 'manifests': []
} }
for arch in arch_list: for arch in arch_list:
info = { info = {
'image': f"{namespace}:{tag}-{arch[0]}", 'image': "{}:{}-{}".format(namespace, tag, arch[0]),
'platform': { 'platform': {
'architecture': arch[1], 'architecture': arch[1],
'os': arch[3] 'os': arch[3]