File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 docker build --platform linux/amd64 -f deploy/docker/Dockerfile.api -t "cixing-api:${IMAGE_TAG}" -t "$IMAGE_ACR" .
5959 docker push "$IMAGE_ACR"
6060
61- - name : Mirror base images to ACR (skip if tag exists)
62- run : |
63- set -eu
64- mirror() {
65- local source="$1"
66- local name="$2"
67- local acr_tag="${ACR_REGISTRY}/${name}"
68- if docker manifest inspect "$acr_tag" >/dev/null 2>&1; then
69- echo "skip $name: already in ACR"
70- return
71- fi
72- echo "mirroring $source -> $acr_tag"
73- docker pull --platform linux/amd64 "$source"
74- docker tag "$source" "$acr_tag"
75- docker push "$acr_tag"
76- }
77- mirror "${POSTGRES_IMAGE:-postgres:16-alpine}" postgres
78- mirror "${REDIS_IMAGE:-redis:7-alpine}" redis
79- mirror "${MAILPIT_IMAGE:-axllent/mailpit:v1.29.7}" mailpit
80-
8161 - name : Prepare deployment files
8262 env :
8363 TEST_CONFIG_YAML : ${{ secrets.TEST_CONFIG_YAML }}
You can’t perform that action at this time.
0 commit comments