Prep work for staging builds

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-02-01 15:34:52 +00:00 committed by Pedro Algarvio
parent bbb3214c1c
commit 93e3e312ec
3 changed files with 11 additions and 3 deletions

View file

@ -653,6 +653,7 @@ jobs:
environment: nightly
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
nightly-build: true
rc-build: ${{ contains(needs.prepare-workflow.outputs.salt-version, 'rc') }}
secrets:
SECRETS_KEY: ${{ secrets.SECRETS_KEY }}

View file

@ -1,5 +1,6 @@
# Do not edit these workflows directly as the changes made will be overwritten.
# Instead, edit the template '<{ template }>'
<%- set prepare_workflow_salt_version_input = prepare_workflow_salt_version_input|default("") %>
---
name: <{ workflow_name }>
@ -138,7 +139,7 @@ jobs:
id: setup-salt-version
uses: ./.github/actions/setup-salt-version
with:
salt-version: ""
salt-version: "<{ prepare_workflow_salt_version_input }>"
- name: Write Changed Files To A Local File
if: ${{ github.event_name != 'schedule' && github.event_name != 'push'}}

View file

@ -1,3 +1,4 @@
<%- set gh_environment = gh_environment|default("nightly") %>
<%- extends 'ci.yml.j2' %>
<%- block on %>
@ -29,9 +30,14 @@ concurrency:
- build-pkgs
uses: ./.github/workflows/build-repos.yml
with:
environment: nightly
environment: <{ gh_environment }>
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
<%- if gh_environment == "nightly" %>
nightly-build: true
<%- else %>
nightly-build: false
<%- endif %>
rc-build: ${{ contains(needs.prepare-workflow.outputs.salt-version, 'rc') }}
secrets:
SECRETS_KEY: ${{ secrets.SECRETS_KEY }}
@ -46,7 +52,7 @@ concurrency:
<%- endfor %>
uses: ./.github/workflows/publish-repositories.yml
with:
environment: nightly
environment: <{ gh_environment }>
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
secrets: inherit
<%- endblock jobs %>