|
9 | 9 | docker login ghcr.io -u "cink-continuous-integration" -p $DOCKER_LOGIN_PAT
|
10 | 10 |
|
11 | 11 | ./bin/setup
|
12 |
| - |
| 12 | +BASE_NAME_AMD64="ghcr.io/customink/crypteia-extension-debian-amd64" |
13 | 13 | docker build \
|
14 | 14 | --platform linux/amd64 \
|
15 |
| - --tag "ghcr.io/customink/crypteia-extension-debian-amd64:${CRYPTEIA_VERSION}" \ |
| 15 | + --tag "${BASE_NAME_AMD64}:${CRYPTEIA_VERSION}" \ |
| 16 | + --tag "${BASE_NAME_AMD64}:latest" \ |
16 | 17 | --file package/Dockerfile .
|
17 |
| -docker push "ghcr.io/customink/crypteia-extension-debian-amd64:${CRYPTEIA_VERSION}" |
| 18 | +docker push "${BASE_NAME_AMD64}:${CRYPTEIA_VERSION}" |
| 19 | +docker push "${BASE_NAME_AMD64}:latest" |
18 | 20 |
|
19 | 21 | ./debian/setup-arm64
|
20 |
| - |
| 22 | +BASE_NAME_ARM64="ghcr.io/customink/crypteia-extension-debian-arm64" |
21 | 23 | docker build \
|
22 | 24 | --platform linux/arm64 \
|
23 |
| - --tag "ghcr.io/customink/crypteia-extension-debian-arm64:${CRYPTEIA_VERSION}" \ |
| 25 | + --tag "${BASE_NAME_ARM64}:${CRYPTEIA_VERSION}" \ |
| 26 | + --tag "${BASE_NAME_ARM64}:latest" \ |
24 | 27 | --file package/Dockerfile .
|
25 |
| -docker push "ghcr.io/customink/crypteia-extension-debian-arm64:${CRYPTEIA_VERSION}" |
| 28 | +docker push "${BASE_NAME_ARM64}:${CRYPTEIA_VERSION}" |
| 29 | +docker push "${BASE_NAME_ARM64}:latest" |
26 | 30 |
|
27 | 31 | docker manifest create \
|
28 | 32 | "ghcr.io/customink/crypteia-extension-debian:${CRYPTEIA_VERSION}" \
|
29 |
| - --amend "ghcr.io/customink/crypteia-extension-debian-amd64:${CRYPTEIA_VERSION}" \ |
30 |
| - --amend "ghcr.io/customink/crypteia-extension-debian-arm64:${CRYPTEIA_VERSION}" |
31 |
| - |
| 33 | + --amend "${BASE_NAME_AMD64}:${CRYPTEIA_VERSION}" \ |
| 34 | + --amend "${BASE_NAME_ARM64}:${CRYPTEIA_VERSION}" |
32 | 35 | docker manifest push "ghcr.io/customink/crypteia-extension-debian:${CRYPTEIA_VERSION}"
|
| 36 | + |
| 37 | +docker manifest create \ |
| 38 | + "ghcr.io/customink/crypteia-extension-debian:latest" \ |
| 39 | + --amend "${BASE_NAME_AMD64}:latest" \ |
| 40 | + --amend "${BASE_NAME_ARM64}:latest" |
| 41 | +docker manifest push "ghcr.io/customink/crypteia-extension-debian:latest" |
0 commit comments