From 68aa9e4db245688cf6fa7b11a9849350095eccf6 Mon Sep 17 00:00:00 2001 From: "v.oleynikov" Date: Fri, 22 Dec 2023 17:00:24 +0300 Subject: [PATCH] Wip tags Signed-off-by: v.oleynikov --- .github/workflows/build_prod.yml | 77 ++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/build_prod.yml diff --git a/.github/workflows/build_prod.yml b/.github/workflows/build_prod.yml new file mode 100644 index 00000000..c758bdc4 --- /dev/null +++ b/.github/workflows/build_prod.yml @@ -0,0 +1,77 @@ +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 + + - 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 + + - 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 + + - uses: actions/checkout@v4 + - uses: deckhouse/modules-actions/setup@v1 + - uses: deckhouse/modules-actions/build@v1