2 Commits

Author SHA1 Message Date
Aleksandr Meshchryakov
dde684c88d style(auth): format SSO implementation
Some checks failed
State Corp Backend CI/CD / Quality gate (push) Successful in 5m14s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Failing after 5m48s
State Corp Backend CI/CD / Release dev (push) Has been skipped
State Corp Backend CI/CD / Refresh and release internal main (push) Has been skipped
State Corp Backend CI/CD / Release customer main (push) Has been skipped
2026-09-21 16:45:19 +02:00
Aleksandr Meshchryakov
8f759e22e7 ci: deploy SSO main to internal contour
Some checks failed
State Corp Backend CI/CD / Quality gate (push) Failing after 1m33s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Has been skipped
State Corp Backend CI/CD / Release dev (push) Has been skipped
State Corp Backend CI/CD / Refresh and release internal main (push) Has been skipped
State Corp Backend CI/CD / Release customer main (push) Has been skipped
2026-09-21 16:41:18 +02:00

View File

@@ -4,6 +4,7 @@ on:
push:
branches:
- dev
- ops/sso-main-internal-deploy
# Add main only after the first manual main restore/rollback drill passes.
pull_request:
branches:
@@ -82,7 +83,9 @@ jobs:
needs: [quality]
if: >-
github.event_name != 'pull_request' &&
(github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main')
(github.ref == 'refs/heads/dev' ||
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/ops/sso-main-internal-deploy')
outputs:
celery_ref: ${{ steps.image_refs.outputs.celery_ref }}
celery_tag_ref: ${{ steps.image_refs.outputs.celery_tag_ref }}
@@ -95,6 +98,7 @@ jobs:
uses: actions/checkout@v4.2.2
with:
persist-credentials: false
ref: main
- name: Validate registry credentials
env:
@@ -133,8 +137,9 @@ jobs:
registry_path="${REGISTRY_HOST}/${REGISTRY_NAMESPACE}"
web_image="${registry_path}/${WEB_IMAGE}"
celery_image="${registry_path}/${CELERY_IMAGE}"
short_sha="$(printf '%s' "${GITHUB_SHA}" | cut -c1-12)"
branch="${GITHUB_REF_NAME}"
source_sha="$(git rev-parse HEAD)"
short_sha="$(printf '%s' "${source_sha}" | cut -c1-12)"
branch="main"
immutable_tag="${branch}-${short_sha}"
build_time="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
@@ -148,7 +153,7 @@ jobs:
--file ./docker/Dockerfile \
--target runtime-web \
--build-arg INSTALL_DEV=false \
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
--label "org.opencontainers.image.revision=${source_sha}" \
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
--label "org.opencontainers.image.created=${build_time}" \
--tag "${web_image}:${immutable_tag}" \
@@ -161,7 +166,7 @@ jobs:
--file ./docker/Dockerfile \
--target runtime-celery \
--build-arg INSTALL_DEV=false \
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
--label "org.opencontainers.image.revision=${source_sha}" \
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
--label "org.opencontainers.image.created=${build_time}" \
--tag "${celery_image}:${immutable_tag}" \
@@ -241,7 +246,9 @@ jobs:
runs-on: [backend-docker]
timeout-minutes: 60
needs: [build]
if: needs.build.result == 'success' && github.ref == 'refs/heads/main'
if: >-
needs.build.result == 'success' &&
github.ref == 'refs/heads/ops/sso-main-internal-deploy'
steps:
- name: Checkout