Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions .github/workflows/release_module_release-channels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ on:
default: true
description: "Set to true if build is required"

defaults:
run:
shell: bash

jobs:
print-vars:
runs-on: [self-hosted, large]
Expand Down Expand Up @@ -88,10 +92,20 @@ jobs:
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
- name: Validation for tag
run: |
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+.*$'

- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get specified tag
run: git fetch --tags

- name: Checkout specified tag
run: git checkout tags/${{ github.event.inputs.tag }}

- name: Login to PROD_REGISTRY
uses: deckhouse/modules-actions/setup@v2
with:
Expand Down Expand Up @@ -136,10 +150,19 @@ jobs:
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
- name: Validation for tag
run: |
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+.*$'
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get specified tag
run: git fetch --tags

- name: Checkout specified tag
run: git checkout tags/${{ github.event.inputs.tag }}

- uses: deckhouse/modules-actions/setup@v2
with:
registry: ${{ vars.PROD_REGISTRY }}
Expand Down Expand Up @@ -190,10 +213,20 @@ jobs:
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
- name: Validation for tag
run: |
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+.*$'
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get specified tag
run: git fetch --tags

- name: Checkout specified tag
run: git checkout tags/${{ github.event.inputs.tag }}


- name: Login to PROD_REGISTRY
uses: deckhouse/modules-actions/setup@v2
with:
Expand Down Expand Up @@ -240,12 +273,17 @@ jobs:
echo $MODULES_MODULE_SOURCE
- name: Validation for tag
run: |
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+'
shell: bash
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+.*$'
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get specified tag
run: git fetch --tags

- name: Checkout specified tag
run: git checkout tags/${{ github.event.inputs.tag }}

- name: Login to PROD_REGISTRY
uses: deckhouse/modules-actions/setup@v2
with:
Expand Down
Loading