Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removeme
Browse files Browse the repository at this point in the history
Taior committed Dec 2, 2024
1 parent d28db14 commit aa87216
Showing 4 changed files with 75 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/ci_templates/build.yml
Original file line number Diff line number Diff line change
@@ -130,10 +130,12 @@ steps:
SECONDARY_REPO=
fi
mkdir "../${{github.run_id}}-${REGISTRY_SUFFIX}"
werf build \
${SECONDARY_REPO} \
--parallel=true --parallel-tasks-limit=5 \
--save-build-report=true \
--tmp-dir="../${{github.run_id}}-${REGISTRY_SUFFIX}" \
--build-report-path images_tags_werf.json
BRANCH_REGISTRY_PATH="${DEV_REGISTRY_PATH}"
SEMVER_REGISTRY_PATH="${DECKHOUSE_REGISTRY_HOST}/deckhouse"
@@ -142,15 +144,19 @@ steps:
# Build using dev-registry as a single primary repo and push:
# - branches to Dev registry to run e2e tests.
# - semver tags to Github Container Registry for testing release process.
mkdir ../${{github.run_id}}-${REGISTRY_SUFFIX}
werf build \
--parallel=true --parallel-tasks-limit=5 \
--save-build-report=true \
--tmp-dir="../${{github.run_id}}-${REGISTRY_SUFFIX}" \
--build-report-path images_tags_werf.json
BRANCH_REGISTRY_PATH="${DEV_REGISTRY_PATH}"
SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}"
echo "⚓️ 🧪 [$(date -u)] DECKHOUSE_REGISTRY_HOST is empty. Publish to Github Container Registry '${PROD_REGISTRY_PATH}'"
fi
cp images_tags_werf.json "../${{github.run_id}}-${REGISTRY_SUFFIX}/"
# Publish images for Git branch.
if [[ -n "${CI_COMMIT_BRANCH}" ]]; then
# Add edition name for non-FE builds
@@ -195,12 +201,15 @@ steps:
if [[ -n ${DECKHOUSE_REGISTRY_HOST} ]] ; then
# Copy stages to prod registry from dev registry.
export WERF_DISABLE_META_TAGS=true
mkdir "../${{github.run_id}}-${REGISTRY_SUFFIX}"
werf build \
--repo ${SEMVER_REGISTRY_PATH}/${REGISTRY_SUFFIX} \
--secondary-repo $WERF_REPO \
--parallel=true --parallel-tasks-limit=5 \
--save-build-report=true \
--tmp-dir="../${{github.run_id}}-${REGISTRY_SUFFIX}" \
--build-report-path images_tags_werf.json
cp images_tags_werf.json "../${{github.run_id}}-${REGISTRY_SUFFIX}/"
fi
# Note: do not run second werf build for test repo, as it has no secondary repo.

6 changes: 6 additions & 0 deletions .github/workflows/build-and-test_dev.yml
Original file line number Diff line number Diff line change
@@ -715,10 +715,12 @@ jobs:
SECONDARY_REPO=
fi
mkdir "../${{github.run_id}}-${REGISTRY_SUFFIX}"
werf build \
${SECONDARY_REPO} \
--parallel=true --parallel-tasks-limit=5 \
--save-build-report=true \
--tmp-dir="../${{github.run_id}}-${REGISTRY_SUFFIX}" \
--build-report-path images_tags_werf.json
BRANCH_REGISTRY_PATH="${DEV_REGISTRY_PATH}"
SEMVER_REGISTRY_PATH="${DECKHOUSE_REGISTRY_HOST}/deckhouse"
@@ -727,15 +729,19 @@ jobs:
# Build using dev-registry as a single primary repo and push:
# - branches to Dev registry to run e2e tests.
# - semver tags to Github Container Registry for testing release process.
mkdir ../${{github.run_id}}-${REGISTRY_SUFFIX}
werf build \
--parallel=true --parallel-tasks-limit=5 \
--save-build-report=true \
--tmp-dir="../${{github.run_id}}-${REGISTRY_SUFFIX}" \
--build-report-path images_tags_werf.json
BRANCH_REGISTRY_PATH="${DEV_REGISTRY_PATH}"
SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}"
echo "⚓️ 🧪 [$(date -u)] DECKHOUSE_REGISTRY_HOST is empty. Publish to Github Container Registry '${PROD_REGISTRY_PATH}'"
fi
cp images_tags_werf.json "../${{github.run_id}}-${REGISTRY_SUFFIX}/"
# Publish images for Git branch.
if [[ -n "${CI_COMMIT_BRANCH}" ]]; then
# Add edition name for non-FE builds
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test_pre-release.yml
Original file line number Diff line number Diff line change
@@ -415,10 +415,12 @@ jobs:
SECONDARY_REPO=
fi
mkdir "../${{github.run_id}}-${REGISTRY_SUFFIX}"
werf build \
${SECONDARY_REPO} \
--parallel=true --parallel-tasks-limit=5 \
--save-build-report=true \
--tmp-dir="../${{github.run_id}}-${REGISTRY_SUFFIX}" \
--build-report-path images_tags_werf.json
BRANCH_REGISTRY_PATH="${DEV_REGISTRY_PATH}"
SEMVER_REGISTRY_PATH="${DECKHOUSE_REGISTRY_HOST}/deckhouse"
@@ -427,15 +429,19 @@ jobs:
# Build using dev-registry as a single primary repo and push:
# - branches to Dev registry to run e2e tests.
# - semver tags to Github Container Registry for testing release process.
mkdir ../${{github.run_id}}-${REGISTRY_SUFFIX}
werf build \
--parallel=true --parallel-tasks-limit=5 \
--save-build-report=true \
--tmp-dir="../${{github.run_id}}-${REGISTRY_SUFFIX}" \
--build-report-path images_tags_werf.json
BRANCH_REGISTRY_PATH="${DEV_REGISTRY_PATH}"
SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}"
echo "⚓️ 🧪 [$(date -u)] DECKHOUSE_REGISTRY_HOST is empty. Publish to Github Container Registry '${PROD_REGISTRY_PATH}'"
fi
cp images_tags_werf.json "../${{github.run_id}}-${REGISTRY_SUFFIX}/"
# Publish images for Git branch.
if [[ -n "${CI_COMMIT_BRANCH}" ]]; then
# Add edition name for non-FE builds
Loading

0 comments on commit aa87216

Please sign in to comment.