Skip to content

Commit

Permalink
chore(cicd): fix output config for manual job
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer committed Mar 4, 2024
1 parent c863252 commit c78a3f3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build_dev_man.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit c78a3f3

Please sign in to comment.