Skip to content

Commit

Permalink
Update deploy_prod.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Okhrimenko <[email protected]>
  • Loading branch information
dxavx authored Dec 27, 2023
1 parent 187765d commit 70d12c7
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
required: true

jobs:
deploy:
setup-vars:
runs-on: ubuntu-latest
env:
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }}
Expand All @@ -42,17 +42,12 @@ jobs:
MODULES_MODULE_TAG: ${{ github.event.inputs.tag }}
name: Build and Push images
steps:
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/${{ github.event.inputs.edition }}/modules" >> "$GITHUB_ENV"
- name: ECHO VAR
run: |
echo $MODULES_REGISTRY
echo $MODULE_SOURCE_NAME
echo $CI_COMMIT_REF_NAME
echo $MODULES_MODULE_NAME
echo $MODULES_MODULE_SOURCE
echo $RELEASE_CHANNEL
echo $MODULES_MODULE_TAG
shell: bash
Expand All @@ -63,22 +58,38 @@ jobs:
if: github.event.inputs.ce == 'true'
steps:
- run: echo "CE"
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ce/modules" >> "$GITHUB_ENV"
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
job-EE:
name: Edition EE
runs-on: ubuntu-latest
if: github.event.inputs.ee == 'true'
steps:
- run: echo "EE"
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ee/modules" >> "$GITHUB_ENV"
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
job-FE:
name: Edition FE
runs-on: ubuntu-latest
if: github.event.inputs.fe == 'true'
steps:
- run: echo "FE"


- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/fe/modules" >> "$GITHUB_ENV"
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
# steps:
# - uses: actions/checkout@v4
Expand Down

0 comments on commit 70d12c7

Please sign in to comment.