amd64 image binding
This commit is contained in:
@@ -22,6 +22,7 @@ services:
|
||||
sendico_bff:
|
||||
<<: *common-env
|
||||
container_name: sendico-bff
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/bff/service:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_billing_documents:
|
||||
<<: *common-env
|
||||
container_name: sendico-billing-documents
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/billing/documents:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_billing_fees:
|
||||
<<: *common-env
|
||||
container_name: sendico-billing-fees
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/billing/fees:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -22,6 +22,7 @@ services:
|
||||
sendico_callbacks:
|
||||
<<: *common-env
|
||||
container_name: sendico-callbacks
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/edge/callbacks:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -22,6 +22,7 @@ services:
|
||||
sendico_chain_gateway:
|
||||
<<: *common-env
|
||||
container_name: sendico-chain-gateway
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/gateway/chain:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_discovery:
|
||||
<<: *common-env
|
||||
container_name: sendico-discovery
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/discovery/service:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_fx_ingestor:
|
||||
<<: *common-env
|
||||
container_name: sendico-fx-ingestor
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/fx/ingestor:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_fx_oracle:
|
||||
<<: *common-env
|
||||
container_name: sendico-fx-oracle
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/fx/oracle:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_ledger:
|
||||
<<: *common-env
|
||||
container_name: sendico-ledger
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/ledger/service:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_mntx_gateway:
|
||||
<<: *common-env
|
||||
container_name: sendico-mntx-gateway
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/gateway/mntx:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_notification:
|
||||
<<: *common-env
|
||||
container_name: sendico-notification
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/notification/service:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_payments_methods:
|
||||
<<: *common-env
|
||||
container_name: sendico-payments-methods
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/payments/methods:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_payments_orchestrator:
|
||||
<<: *common-env
|
||||
container_name: sendico-payments-orchestrator
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/payments/orchestrator:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_payments_quotation:
|
||||
<<: *common-env
|
||||
container_name: sendico-payments-quotation
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/payments/quotation:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
sendico_tgsettle_gateway:
|
||||
<<: *common-env
|
||||
container_name: sendico-tgsettle-gateway
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/gateway/tgsettle:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
@@ -22,6 +22,7 @@ services:
|
||||
sendico_tron_gateway:
|
||||
<<: *common-env
|
||||
container_name: sendico-tron-gateway
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/gateway/tron:${APP_V}
|
||||
pull_policy: always
|
||||
|
||||
52
ci/scripts/common/buildx_build_and_push.sh
Normal file
52
ci/scripts/common/buildx_build_and_push.sh
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
if ! set -o pipefail 2>/dev/null; then
|
||||
:
|
||||
fi
|
||||
|
||||
REGISTRY_HOST="${REGISTRY_HOST:?missing REGISTRY_HOST}"
|
||||
REGISTRY_USER="${REGISTRY_USER:?missing REGISTRY_USER}"
|
||||
REGISTRY_PASSWORD="${REGISTRY_PASSWORD:?missing REGISTRY_PASSWORD}"
|
||||
BUILD_CONTEXT="${BUILD_CONTEXT:?missing BUILD_CONTEXT}"
|
||||
IMAGE_DOCKERFILE="${IMAGE_DOCKERFILE:?missing IMAGE_DOCKERFILE}"
|
||||
IMAGE_DESTINATION="${IMAGE_DESTINATION:?missing IMAGE_DESTINATION}"
|
||||
APP_V="${APP_V:?missing APP_V}"
|
||||
GIT_REV="${GIT_REV:?missing GIT_REV}"
|
||||
BUILD_BRANCH="${BUILD_BRANCH:?missing BUILD_BRANCH}"
|
||||
BUILD_DATE="${BUILD_DATE:?missing BUILD_DATE}"
|
||||
BUILD_USER="${BUILD_USER:?missing BUILD_USER}"
|
||||
|
||||
BUILD_PLATFORM="${BUILD_PLATFORM:-linux/amd64}"
|
||||
BUILDER_NAME="${BUILDER_NAME:-sendico-cross-builder}"
|
||||
|
||||
if [ ! -S /var/run/docker.sock ]; then
|
||||
echo "[buildx] docker socket not found at /var/run/docker.sock" >&2
|
||||
exit 69
|
||||
fi
|
||||
|
||||
printf '%s' "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOST}" --username "${REGISTRY_USER}" --password-stdin
|
||||
|
||||
docker run --rm --privileged tonistiigi/binfmt --install amd64
|
||||
|
||||
if docker buildx inspect "${BUILDER_NAME}" >/dev/null 2>&1; then
|
||||
docker buildx use "${BUILDER_NAME}"
|
||||
else
|
||||
docker buildx create --name "${BUILDER_NAME}" --driver docker-container --use
|
||||
fi
|
||||
|
||||
docker buildx inspect --bootstrap >/dev/null
|
||||
|
||||
docker buildx build \
|
||||
--platform "${BUILD_PLATFORM}" \
|
||||
--file "${IMAGE_DOCKERFILE}" \
|
||||
--tag "${IMAGE_DESTINATION}" \
|
||||
--build-arg APP_VERSION="${APP_V}" \
|
||||
--build-arg GIT_REV="${GIT_REV}" \
|
||||
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \
|
||||
--build-arg BUILD_DATE="${BUILD_DATE}" \
|
||||
--build-arg BUILD_USER="${BUILD_USER}" \
|
||||
--provenance=false \
|
||||
--pull \
|
||||
--push \
|
||||
"${BUILD_CONTEXT}"
|
||||
Reference in New Issue
Block a user