mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Prep work for staging builds
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
bbb3214c1c
commit
93e3e312ec
3 changed files with 11 additions and 3 deletions
1
.github/workflows/nightly.yml
vendored
1
.github/workflows/nightly.yml
vendored
|
@ -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 }}
|
||||
|
||||
|
|
3
.github/workflows/templates/layout.yml.j2
vendored
3
.github/workflows/templates/layout.yml.j2
vendored
|
@ -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'}}
|
||||
|
|
10
.github/workflows/templates/nightly.yml.j2
vendored
10
.github/workflows/templates/nightly.yml.j2
vendored
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Reference in a new issue