ci: push images without local docker unpack
Some checks failed
CI/CD Pipeline / Manual Action Help (push) Has been skipped
CI/CD Pipeline / Start Dev Containers in Dokploy (push) Has been skipped
CI/CD Pipeline / Drop and Recreate Dev Database (push) Has been skipped
CI/CD Pipeline / Quality Gate (push) Successful in 59s
CI/CD Pipeline / Build and Push Images (push) Failing after 38s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 1s
Some checks failed
CI/CD Pipeline / Manual Action Help (push) Has been skipped
CI/CD Pipeline / Start Dev Containers in Dokploy (push) Has been skipped
CI/CD Pipeline / Drop and Recreate Dev Database (push) Has been skipped
CI/CD Pipeline / Quality Gate (push) Successful in 59s
CI/CD Pipeline / Build and Push Images (push) Failing after 38s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 1s
This commit is contained in:
@@ -207,36 +207,37 @@ jobs:
|
|||||||
CELERY_TAGS+=(-t "${CELERY_REF}:latest")
|
CELERY_TAGS+=(-t "${CELERY_REF}:latest")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker build \
|
if ! docker buildx inspect mostovik-builder >/dev/null 2>&1; then
|
||||||
|
docker buildx create --name mostovik-builder --use
|
||||||
|
else
|
||||||
|
docker buildx use mostovik-builder
|
||||||
|
fi
|
||||||
|
docker buildx inspect --bootstrap
|
||||||
|
|
||||||
|
docker buildx build \
|
||||||
-f ./docker/Dockerfile \
|
-f ./docker/Dockerfile \
|
||||||
--target runtime-web \
|
--target runtime-web \
|
||||||
--build-arg INSTALL_DEV=false \
|
--build-arg INSTALL_DEV=false \
|
||||||
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
|
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
|
||||||
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
|
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
|
||||||
|
--output type=image,push=true,oci-mediatypes=false \
|
||||||
|
--provenance=false \
|
||||||
|
--sbom=false \
|
||||||
"${WEB_TAGS[@]}" \
|
"${WEB_TAGS[@]}" \
|
||||||
.
|
.
|
||||||
|
|
||||||
docker push "${WEB_REF}:${BRANCH_TAG}"
|
docker buildx build \
|
||||||
docker push "${WEB_REF}:${BRANCH_TAG}-${SHA_SHORT}"
|
|
||||||
if [ "${GITHUB_REF_NAME}" = "main" ]; then
|
|
||||||
docker push "${WEB_REF}:latest"
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker build \
|
|
||||||
-f ./docker/Dockerfile \
|
-f ./docker/Dockerfile \
|
||||||
--target runtime-celery \
|
--target runtime-celery \
|
||||||
--build-arg INSTALL_DEV=false \
|
--build-arg INSTALL_DEV=false \
|
||||||
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
|
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
|
||||||
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
|
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
|
||||||
|
--output type=image,push=true,oci-mediatypes=false \
|
||||||
|
--provenance=false \
|
||||||
|
--sbom=false \
|
||||||
"${CELERY_TAGS[@]}" \
|
"${CELERY_TAGS[@]}" \
|
||||||
.
|
.
|
||||||
|
|
||||||
docker push "${CELERY_REF}:${BRANCH_TAG}"
|
|
||||||
docker push "${CELERY_REF}:${BRANCH_TAG}-${SHA_SHORT}"
|
|
||||||
if [ "${GITHUB_REF_NAME}" = "main" ]; then
|
|
||||||
docker push "${CELERY_REF}:latest"
|
|
||||||
fi
|
|
||||||
|
|
||||||
{
|
{
|
||||||
echo "Registry API: ${REGISTRY_API_URL}"
|
echo "Registry API: ${REGISTRY_API_URL}"
|
||||||
echo "Pushed images:"
|
echo "Pushed images:"
|
||||||
|
|||||||
Reference in New Issue
Block a user