mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-08 14:23:38 +00:00
Add staging builds
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -12,7 +12,7 @@ on: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-wor
|
|||||||
branches:
|
branches:
|
||||||
- live
|
- live
|
||||||
- template
|
- template
|
||||||
- main
|
- staging
|
||||||
paths-ignore: # don't rebuild if only documentation has changed
|
paths-ignore: # don't rebuild if only documentation has changed
|
||||||
- "**.md"
|
- "**.md"
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -163,8 +163,14 @@ jobs:
|
|||||||
BUILD_TAGS=("${MAJOR_VERSION}" "${MAJOR_VERSION:+$MAJOR_VERSION-}${TIMESTAMP}")
|
BUILD_TAGS=("${MAJOR_VERSION}" "${MAJOR_VERSION:+$MAJOR_VERSION-}${TIMESTAMP}")
|
||||||
# --
|
# --
|
||||||
|
|
||||||
BUILD_TAGS+=("${TIMESTAMP}")
|
if [[ ${{ github.ref_name }} == "staging" ]]; then
|
||||||
BUILD_TAGS+=("latest")
|
BUILD_TAGS=("${MAJOR_VERSION}-staging" "${MAJOR_VERSION}-staging-${TIMESTAMP}")
|
||||||
|
BUILD_TAGS+=("staging")
|
||||||
|
else
|
||||||
|
BUILD_TAGS=("${MAJOR_VERSION}" "${MAJOR_VERSION}-${TIMESTAMP}")
|
||||||
|
BUILD_TAGS+=("latest")
|
||||||
|
BUILD_TAGS+=("${TIMESTAMP}")
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||||
echo "Generated the following commit tags: "
|
echo "Generated the following commit tags: "
|
||||||
|
|||||||
Reference in New Issue
Block a user