Skip to content

Commit

Permalink
Fix envs for build_prod workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <[email protected]>
  • Loading branch information
AleksZimin committed Dec 27, 2023
1 parent 490931b commit e2b2991
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 deletions .github/workflows/build_prod.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
name: Build and push for prod

env:
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }}
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }}
MODULE_SOURCE_NAME: ${{ vars.PROD_MODULE_SOURCE_NAME }}
MODULES_REGISTRY_LOGIN: ${{ secrets.PROD_MODULES_REGISTRY_LOGIN }}
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }}
MODULES_MODULE_TAG: ${{ github.ref_name }}

on:
push:
tags:
Expand All @@ -6,15 +17,7 @@ on:
jobs:
prod_ce_setup_build:
runs-on: ubuntu-latest
env:
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }}
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }}
MODULES_MODULE_SOURCE: ${{ vars.PROD_CE_MODULE_SOURCE }}
MODULES_REGISTRY_LOGIN: ${{ secrets.PROD_MODULES_REGISTRY_LOGIN }}
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }}
MODULES_MODULE_TAG: ${{ github.ref_name }}
name: Build and Push images
name: Build and Push CE
steps:
- name: SET VAR
run: |
Expand All @@ -33,15 +36,7 @@ jobs:

prod_ee_setup_build:
runs-on: ubuntu-latest
env:
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }}
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }}
MODULES_MODULE_SOURCE: ${{ vars.PROD_EE_MODULE_SOURCE }}
MODULES_REGISTRY_LOGIN: ${{ secrets.PROD_MODULES_REGISTRY_LOGIN }}
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }}
MODULES_MODULE_TAG: ${{ github.ref_name }}
name: Build and Push images
name: Build and Push EE
steps:
- name: SET VAR
run: |
Expand All @@ -60,15 +55,7 @@ jobs:

prod_fe_setup_build:
runs-on: ubuntu-latest
env:
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }}
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }}
MODULES_MODULE_SOURCE: ${{ vars.PROD_FE_MODULE_SOURCE }}
MODULES_REGISTRY_LOGIN: ${{ secrets.PROD_MODULES_REGISTRY_LOGIN }}
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }}
MODULES_MODULE_TAG: ${{ github.ref_name }}
name: Build and Push images
name: Build and Push FE
steps:
- name: SET VAR
run: |
Expand Down

0 comments on commit e2b2991

Please sign in to comment.