diff --git a/.github/workflows/build_dev_man.yml b/.github/workflows/build_dev_man.yml index a2f271f6f..31a5bd33e 100644 --- a/.github/workflows/build_dev_man.yml +++ b/.github/workflows/build_dev_man.yml @@ -3,7 +3,7 @@ name: Build and push for dev (Manually) env: MODULES_REGISTRY: ${{ vars.DEV_REGISTRY }} CI_COMMIT_REF_NAME: ${{ github.event.inputs.tag }} -# CI_COMMIT_REF_NAME: ${{ github.ref_name }} + # CI_COMMIT_REF_NAME: ${{ github.ref_name }} MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }} MODULES_MODULE_SOURCE: ${{ vars.DEV_MODULE_SOURCE }} MODULES_REGISTRY_LOGIN: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }} @@ -44,10 +44,10 @@ jobs: - name: Set vars for PR if: ${{ github.ref_name != 'main' }} run: | - MODULES_MODULE_TAG="$(echo pr${{github.event.pull_request.number}})" + MODULES_MODULE_TAG="$(echo ${{github.event.inputs.tag}})" echo "MODULES_MODULE_TAG=$MODULES_MODULE_TAG" >> "$GITHUB_ENV" shell: bash - + - name: Set vars for main if: ${{ github.ref_name == 'main' }} run: | @@ -102,16 +102,16 @@ jobs: needs: - tag_validation steps: - - name: Set up Go 1.20 + - name: Set up Go 1.21 uses: actions/setup-go@v5 with: - go-version: "1.20" - + go-version: "1.21" + - name: Install Task uses: arduino/setup-task@v1 - + - uses: actions/checkout@v4 - + - name: Run lint virtualization-controller run: | task virtualization-controller:init @@ -127,12 +127,12 @@ jobs: uses: actions/setup-go@v5 with: go-version: "1.20" - + - name: Install Task uses: arduino/setup-task@v1 - + - uses: actions/checkout@v4 - + - name: Run test hooks run: | task hooks:test @@ -151,21 +151,21 @@ jobs: - tag_validation - lint - test - steps: + steps: - name: Set vars for PR if: ${{ github.ref_name != 'main' }} run: | MODULES_MODULE_TAG="$(echo pr${{github.event.pull_request.number}})" echo "MODULES_MODULE_TAG=$MODULES_MODULE_TAG" >> "$GITHUB_ENV" shell: bash - + - name: Set vars for main if: ${{ github.ref_name == 'main' }} run: | MODULES_MODULE_TAG="$(echo v0.0.0-${{ github.ref_name }})" echo "MODULES_MODULE_TAG=$MODULES_MODULE_TAG" >> "$GITHUB_ENV" shell: bash - + - name: Print vars run: | echo MODULES_REGISTRY=$MODULES_REGISTRY @@ -179,7 +179,7 @@ jobs: - uses: deckhouse/modules-actions/setup@v1 - uses: deckhouse/modules-actions/build@v1 - - name: Register the module + - name: Register the module run: | echo "✨ Register the module ${MODULES_MODULE_NAME}" crane append \