From a76c8537e0220d36ab799fdf3db5f140b4147cde Mon Sep 17 00:00:00 2001 From: Alexandr Okhrimenko Date: Tue, 26 Dec 2023 14:48:35 +0300 Subject: [PATCH] Create deploy_dev.yml Signed-off-by: Alexandr Okhrimenko --- .github/workflows/deploy_dev.yml | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/deploy_dev.yml diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml new file mode 100644 index 00000000..3ab7af5c --- /dev/null +++ b/.github/workflows/deploy_dev.yml @@ -0,0 +1,48 @@ +name: Deploy Dev + +on: + workflow_dispatch: + inputs: + version: + description: "Select version" + type: choice + default: alpha + options: + - "alpha" + - "beta" + - "early-access" + - "stable" + - "rock-solid" + + tag: + description: "Tag of the module, exapmle v1.21.1" + type: string + required: true + +jobs: + deploy: + runs-on: ubuntu-latest + env: + MODULES_REGISTRY: ${{ vars.REGISTRY }} + CI_COMMIT_REF_NAME: ${{ github.ref_name }} + MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }} + MODULES_MODULE_SOURCE: ${{ vars.MODULE_SOURCE }} + RELEASE_CHANNEL: ${{ github.event.inputs.version }} + MODULES_MODULE_TAG: ${{ github.event.inputs.tag }} + name: Build and Push images + steps: + - run: | + echo $MODULES_REGISTRY + echo $CI_COMMIT_REF_NAME + echo $MODULES_MODULE_NAME + echo $MODULES_MODULE_SOURCE + echo $RELEASE_CHANNEL + echo $MODULES_MODULE_TAG + shell: bash + name: Show vars + + + # steps: + # - uses: actions/checkout@v4 + # - uses: deckhouse/modules-actions/setup@v1 + # - uses: deckhouse/modules-actions/deploy@v1