-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): branch-wise nightly image selection (#152)
* chore(ci): per-branch default nightly * chore(ci): test release workflow * Revert "chore(ci): test release workflow" This reverts commit 867aa30.
- Loading branch information
1 parent
86c6f03
commit d52a9d5
Showing
8 changed files
with
108 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Build context for this Dockerfile MUST BE the project root (..) | ||
|
||
ARG GATEWAY_IMAGE=kong/kong:nightly-ubuntu | ||
FROM $GATEWAY_IMAGE | ||
# Build context for this Dockerfile MUST BE the project root (should be .. if this file is in ./.ci/) | ||
|
||
ARG GATEWAY_IMAGE=${GATEWAY_IMAGE} | ||
ARG KONG_MANAGER_BUILD_SHA1=${KONG_MANAGER_BUILD_SHA1} | ||
|
||
FROM $GATEWAY_IMAGE | ||
LABEL com.konghq.kong-manager.build="${KONG_MANAGER_BUILD_SHA1}" | ||
|
||
ADD ./dist /usr/local/kong/gui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Select Gateway image | ||
description: | ||
|
||
inputs: | ||
current-image: | ||
description: If this optional input is not empty, the action will select the provided image. | ||
enterprise: | ||
description: Whether or not to use enterprise Gateway images. | ||
default: 'false' # a string instead of a boolean | ||
|
||
outputs: | ||
image: | ||
value: ${{ steps.select-image.outputs.image }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Select image | ||
id: select-image | ||
shell: bash | ||
env: | ||
DEFAULT_GATEWAY_IMAGE: |- | ||
${{ format('{0}', inputs.enterprise) == 'true' && 'kong/kong-gateway-internal:nightly-ubuntu' || 'kong/kong:nightly-ubuntu' }} | ||
run: | | ||
GATEWAY_IMAGE="${{ inputs.current-image }}" | ||
if [[ -z "${{ env.DEFAULT_GATEWAY_IMAGE }}" ]]; then | ||
echo "fatal: DEFAULT_GATEWAY_IMAGE is not set." | ||
exit 1 | ||
fi | ||
if [[ -z "$GATEWAY_IMAGE" ]]; then | ||
GATEWAY_IMAGE="${{ env.DEFAULT_GATEWAY_IMAGE }}" | ||
fi | ||
echo "image=$GATEWAY_IMAGE" >> $GITHUB_OUTPUT | ||
echo "Selected Gateway image: $GATEWAY_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters