-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add secondary repo in build and SE+ version
Signed-off-by: v.oleynikov <[email protected]>
- Loading branch information
Showing
2 changed files
with
123 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,6 @@ env: | |
MODULES_REGISTRY_LOGIN: ${{ vars.PROD_MODULES_REGISTRY_LOGIN }} | ||
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }} | ||
MODULES_MODULE_TAG: ${{ github.ref_name }} | ||
# for ex https://user:[email protected]/group | ||
SOURCE_REPO: "${{ secrets.SOURCE_REPO }}" | ||
|
||
on: | ||
push: | ||
|
@@ -23,7 +21,7 @@ jobs: | |
steps: | ||
- name: SET VAR | ||
run: | | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ce/modules" >> "$GITHUB_ENV" | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ce/modules" >> "$GITHUB_ENV" | ||
- run: | | ||
echo $MODULES_REGISTRY | ||
echo $MODULES_MODULE_NAME | ||
|
@@ -33,16 +31,30 @@ jobs: | |
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.PROD_REGISTRY }} | ||
registry_login: ${{ vars.PROD_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.DEV_REGISTRY }} | ||
registry_login: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
module_source: "${{ vars.PROD_REGISTRY }}/${{ vars.PROD_MODULE_SOURCE_NAME }}/ce/modules" | ||
module_name: ${{ vars.MODULE_NAME }} | ||
module_tag: ${{ github.ref_name }} | ||
secondary_repo: "${{ vars.DEV_MODULE_SOURCE }}/${{ vars.MODULE_NAME }}" | ||
|
||
prod_ee_setup_build: | ||
runs-on: [self-hosted, regular, selectel] | ||
name: Build and Push EE | ||
steps: | ||
- name: SET VAR | ||
run: | | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ee/modules" >> "$GITHUB_ENV" | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ee/modules" >> "$GITHUB_ENV" | ||
- run: | | ||
echo $MODULES_REGISTRY | ||
echo $MODULES_MODULE_NAME | ||
|
@@ -52,16 +64,30 @@ jobs: | |
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.PROD_REGISTRY }} | ||
registry_login: ${{ vars.PROD_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.DEV_REGISTRY }} | ||
registry_login: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
module_source: "${{ vars.PROD_REGISTRY }}/${{ vars.PROD_MODULE_SOURCE_NAME }}/ee/modules" | ||
module_name: ${{ vars.MODULE_NAME }} | ||
module_tag: ${{ github.ref_name }} | ||
secondary_repo: "${{ vars.DEV_MODULE_SOURCE }}/${{ vars.MODULE_NAME }}" | ||
|
||
prod_fe_setup_build: | ||
runs-on: [self-hosted, regular, selectel] | ||
name: Build and Push FE | ||
steps: | ||
- name: SET VAR | ||
run: | | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/fe/modules" >> "$GITHUB_ENV" | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/fe/modules" >> "$GITHUB_ENV" | ||
- run: | | ||
echo $MODULES_REGISTRY | ||
echo $MODULES_MODULE_NAME | ||
|
@@ -71,8 +97,22 @@ jobs: | |
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.PROD_REGISTRY }} | ||
registry_login: ${{ vars.PROD_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.DEV_REGISTRY }} | ||
registry_login: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
module_source: "${{ vars.PROD_REGISTRY }}/${{ vars.PROD_MODULE_SOURCE_NAME }}/fe/modules" | ||
module_name: ${{ vars.MODULE_NAME }} | ||
module_tag: ${{ github.ref_name }} | ||
secondary_repo: "${{ vars.DEV_MODULE_SOURCE }}/${{ vars.MODULE_NAME }}" | ||
|
||
prod_se_setup_build: | ||
runs-on: [self-hosted, regular, selectel] | ||
|
@@ -90,5 +130,52 @@ jobs: | |
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.PROD_REGISTRY }} | ||
registry_login: ${{ vars.PROD_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.DEV_REGISTRY }} | ||
registry_login: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
module_source: "${{ vars.PROD_REGISTRY }}/${{ vars.PROD_MODULE_SOURCE_NAME }}/se/modules" | ||
module_name: ${{ vars.MODULE_NAME }} | ||
module_tag: ${{ github.ref_name }} | ||
secondary_repo: "${{ vars.DEV_MODULE_SOURCE }}/${{ vars.MODULE_NAME }}" | ||
|
||
prod_se_plus_setup_build: | ||
runs-on: [self-hosted, regular, selectel] | ||
name: Build and Push SE+ | ||
steps: | ||
- name: SET VAR | ||
run: | | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/se-plus/modules" >> "$GITHUB_ENV" | ||
- run: | | ||
echo $MODULES_REGISTRY | ||
echo $MODULES_MODULE_NAME | ||
echo $MODULES_MODULE_SOURCE | ||
echo $MODULES_MODULE_TAG | ||
shell: bash | ||
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.PROD_REGISTRY }} | ||
registry_login: ${{ vars.PROD_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
registry: ${{ vars.DEV_REGISTRY }} | ||
registry_login: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }} | ||
registry_password: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | ||
- uses: deckhouse/modules-actions/[email protected] | ||
with: | ||
module_source: "${{ vars.PROD_REGISTRY }}/${{ vars.PROD_MODULE_SOURCE_NAME }}/se-plus/modules" | ||
module_name: ${{ vars.MODULE_NAME }} | ||
module_tag: ${{ github.ref_name }} | ||
secondary_repo: "${{ vars.DEV_MODULE_SOURCE }}/${{ vars.MODULE_NAME }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters