Skip to content

Deploy Prod

Deploy Prod #3

Workflow file for this run

name: Deploy Prod
on:
workflow_dispatch:
inputs:
version:
description: "Select version"
type: choice
default: alpha
options:
- "alpha"
- "beta"
- "early-access"
- "stable"
- "rock-solid"
edition:
description: "Select edition"
type: choice
default: fe
options:
- "ce"
- "ee"
- "fe"
tag:
description: "Tag of the module, exapmle v1.21.1"
type: string
required: true
jobs:
deploy:
runs-on: ubuntu-latest
env:
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }}
MODULE_SOURCE_NAME: ${{ vars.PROD_MODULE_SOURCE_NAME }}
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }}
#MODULES_MODULE_SOURCE: ${{ format('{0}/{1}/{2}/modules', env.MODULES_REGISTRY, env.MODULE_SOURCE_NAME, github.event.inputs.edition ) }}
TESTMODULES_MODULE_SOURCE: $MODULES_REGISTRY/$MODULE_SOURCE_NAME/${{ github.event.inputs.edition }}/modules
RELEASE_CHANNEL: ${{ github.event.inputs.version }}
MODULES_MODULE_TAG: ${{ github.event.inputs.tag }}
FIRST_PART: 'first'
SECOND_PART: 'second'
FULL: ${{ format('{0}-{1}', env.FIRST_PART, env.SECOND_PART) }}

Check failure on line 45 in .github/workflows/deploy_prod.yml

View workflow run for this annotation

GitHub Actions / Deploy Prod

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_prod.yml (Line: 45, Col: 14): Unrecognized named-value: 'env'. Located at position 19 within expression: format('{0}-{1}', env.FIRST_PART, env.SECOND_PART)
name: Build and Push images
steps:
- run: |
echo "FIRST_PART=$FIRST_PART"
echo "SECOND_PART=$SECOND_PART"
echo "FULL=$FULL"
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
name: Show vars
# steps:
# - uses: actions/checkout@v4
# - uses: deckhouse/modules-actions/setup@v1
# - uses: deckhouse/modules-actions/deploy@v1