cleanup for next version
This commit is contained in:
parent
46c656219f
commit
106e0534b1
2 changed files with 9 additions and 7 deletions
10
deploy.sh
10
deploy.sh
|
@ -19,13 +19,15 @@ echo "$DOCKER_PASSWORD" | docker login -u="$DOCKER_USER" --password-stdin
|
|||
|
||||
# Latest x64
|
||||
docker build -t "${NAMESPACE}:latest" . && \
|
||||
docker push "${NAMESPACE}:latest" && \
|
||||
# Versioned x64
|
||||
docker tag "${NAMESPACE}:latest" "${NAMESPACE}:${VERSION}" && \
|
||||
docker push "${NAMESPACE}:${VERSION}" && \
|
||||
docker push "${NAMESPACE}:latest"
|
||||
# x64 Arch
|
||||
docker tag "${NAMESPACE}:latest" "${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
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
|
|
|
@ -4,7 +4,7 @@ from varken import VERSION
|
|||
|
||||
org = 'boerderij'
|
||||
project = 'varken'
|
||||
namespace = f"{org}/{project}"
|
||||
namespace = "{}/{}".format(org, project)
|
||||
|
||||
yaml_arr = []
|
||||
tags = ['latest', VERSION]
|
||||
|
@ -17,12 +17,12 @@ arch_list = [('arm', 'arm', 'v6', 'linux'),
|
|||
|
||||
for tag in tags:
|
||||
yaml_doc = {
|
||||
'image': f'{namespace}:{tag}',
|
||||
'image': '{}:{}'.format(namespace, tag),
|
||||
'manifests': []
|
||||
}
|
||||
for arch in arch_list:
|
||||
info = {
|
||||
'image': f"{namespace}:{tag}-{arch[0]}",
|
||||
'image': "{}:{}-{}".format(namespace, tag, arch[0]),
|
||||
'platform': {
|
||||
'architecture': arch[1],
|
||||
'os': arch[3]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue