Skip to content

Commit

Permalink
Enable build for prod
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 5d63503 commit 490931b
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 119 deletions.
151 changes: 80 additions & 71 deletions .github/workflows/build_prod.yml
Original file line number Diff line number Diff line change
@@ -1,77 +1,86 @@
# on:
# push:
# tags:
# - '**'
on:
push:
tags:
- '**'

# 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
# steps:
# - run: |
# echo $MODULES_REGISTRY
# echo $MODULES_MODULE_NAME
# echo $MODULES_MODULE_SOURCE
# echo $MODULES_MODULE_TAG
# shell: bash
# name: Show vars
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
steps:
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ce/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/setup@v1
# - uses: deckhouse/modules-actions/build@v1
# - uses: actions/checkout@v4
# - uses: deckhouse/modules-actions/setup@v1
# - uses: deckhouse/modules-actions/build@v1

# 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
# steps:
# - run: |
# echo $MODULES_REGISTRY
# echo $MODULES_MODULE_NAME
# echo $MODULES_MODULE_SOURCE
# echo $MODULES_MODULE_TAG
# shell: bash
# name: Show vars
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
steps:
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ee/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/setup@v1
# - uses: deckhouse/modules-actions/build@v1
# - uses: actions/checkout@v4
# - uses: deckhouse/modules-actions/setup@v1
# - uses: deckhouse/modules-actions/build@v1

# 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
# steps:
# - run: |
# echo $MODULES_REGISTRY
# echo $MODULES_MODULE_NAME
# echo $MODULES_MODULE_SOURCE
# echo $MODULES_MODULE_TAG
# shell: bash
# name: Show vars
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
steps:
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/fe/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/setup@v1
# - uses: deckhouse/modules-actions/build@v1
# - uses: actions/checkout@v4
# - uses: deckhouse/modules-actions/setup@v1
# - uses: deckhouse/modules-actions/build@v1
48 changes: 0 additions & 48 deletions .github/workflows/deploy_dev.yml

This file was deleted.

0 comments on commit 490931b

Please sign in to comment.