File tree Expand file tree Collapse file tree 5 files changed +14
-3
lines changed
.devcontainer/test-feature Expand file tree Collapse file tree 5 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 7
7
" spacefx-dev"
8
8
],
9
9
"features" : {
10
- "ghcr.io/microsoft/azure-orbital-space-sdk/spacefx-dev:0.11.0_test_do_not_use" : {
10
+ "ghcr.io/microsoft/azure-orbital-space-sdk/spacefx-dev:0.11.0_test_do_not_use-nightly " : {
11
11
"app_name" : " spacesdk-setup" ,
12
12
"app_type" : " none" ,
13
13
"extract_setup_files" : " false"
Original file line number Diff line number Diff line change 12
12
push :
13
13
branches :
14
14
- main
15
+ - ' [0-9]*.[0-9]*.[0-9]*-nightly'
15
16
16
17
17
18
env :
55
56
# Copy the scripts ino the entry point for the devcontainer feature
56
57
echo "Copying all files to /var/spacedev..."
57
58
./.vscode/copy_to_spacedev.sh --output-dir ./.devcontainer/features/spacefx-dev/azure-orbital-space-sdk-setup
59
+
60
+ SPACEFX_VERSION_CHANNEL_TAG="${SPACEFX_VERSION}"
61
+ [[ "${SPACEFX_CHANNEL}" != "stable" ]] && SPACEFX_VERSION_CHANNEL_TAG="${SPACEFX_VERSION}-${SPACEFX_CHANNEL}"
58
62
59
63
echo "...Cleaning './.devcontainer/features/spacefx-dev/azure-orbital-space-sdk-setup/chart/certs'..."
60
64
# Remove the certs that might've been generated
66
70
echo "Building the devcontainer feature..."
67
71
devcontainer features package --force-clean-output-folder ./.devcontainer/features --output-folder ./output/spacefx-dev
68
72
73
+
69
74
# Push the devcontainer feature tarball to the registry
70
75
echo "Pushing the devcontainer feature tarball to the registry..."
71
- oras push ${{ env.REGISTRY }}/${{ env.FEATURE }}:${SPACEFX_VERSION } \
76
+ oras push ${{ env.REGISTRY }}/${{ env.FEATURE }}:${SPACEFX_VERSION_CHANNEL_TAG } \
72
77
--config /dev/null:application/vnd.devcontainers \
73
78
--annotation org.opencontainers.image.source=https://github.com/microsoft/azure-orbital-space-sdk-setup \
74
79
${{ env.ARTIFACT_PATH }}:application/vnd.devcontainers.layer.v1+tar
Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- main
8
+ - ' [0-9]*.[0-9]*.[0-9]*-nightly'
8
9
9
10
jobs :
10
11
build-spacefx-base-image-amd64 :
Original file line number Diff line number Diff line change 9
9
type : string
10
10
default : " 26.1.3"
11
11
pull_request :
12
- branches : [ main ]
12
+ branches :
13
+ - main
14
+ - ' [0-9]*.[0-9]*.[0-9]*-nightly'
13
15
14
16
15
17
env :
Original file line number Diff line number Diff line change @@ -112,6 +112,9 @@ echo "...running copy_to_spacedev.sh"
112
112
# Copy the scripts ino the entry point for the devcontainer feature
113
113
${WORKING_DIR} /.vscode/copy_to_spacedev.sh --output-dir ${WORKING_DIR} /.devcontainer/features/spacefx-dev/azure-orbital-space-sdk-setup
114
114
115
+ source ${WORKING_DIR} /.devcontainer/features/spacefx-dev/azure-orbital-space-sdk-setup/env/spacefx.env
116
+ [[ " ${SPACEFX_CHANNEL} " != " stable" ]] && VERSION=" ${VERSION} -${SPACEFX_CHANNEL} "
117
+
115
118
echo " ...building the devcontainer feature..."
116
119
# Build the devcontainer feature
117
120
devcontainer features package --force-clean-output-folder ${WORKING_DIR} /.devcontainer/features --output-folder ${WORKING_DIR} /output/spacefx-dev
You can’t perform that action at this time.
0 commit comments