Skip to content

Commit 85c15ad

Browse files
author
alianides
committed
updated image calcuations
1 parent 328252d commit 85c15ad

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

.devcontainer/test-feature/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"spacefx-dev"
88
],
99
"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": {
1111
"app_name": "spacesdk-setup",
1212
"app_type": "none",
1313
"extract_setup_files": "false"

.github/workflows/devcontainer-feature-build-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
push:
1313
branches:
1414
- main
15+
- '[0-9]*.[0-9]*.[0-9]*-nightly'
1516

1617

1718
env:
@@ -55,6 +56,9 @@ jobs:
5556
# Copy the scripts ino the entry point for the devcontainer feature
5657
echo "Copying all files to /var/spacedev..."
5758
./.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}"
5862
5963
echo "...Cleaning './.devcontainer/features/spacefx-dev/azure-orbital-space-sdk-setup/chart/certs'..."
6064
# Remove the certs that might've been generated
@@ -66,9 +70,10 @@ jobs:
6670
echo "Building the devcontainer feature..."
6771
devcontainer features package --force-clean-output-folder ./.devcontainer/features --output-folder ./output/spacefx-dev
6872
73+
6974
# Push the devcontainer feature tarball to the registry
7075
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} \
7277
--config /dev/null:application/vnd.devcontainers \
7378
--annotation org.opencontainers.image.source=https://github.com/microsoft/azure-orbital-space-sdk-setup \
7479
${{ env.ARTIFACT_PATH }}:application/vnd.devcontainers.layer.v1+tar

.github/workflows/spacefx-images-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
- '[0-9]*.[0-9]*.[0-9]*-nightly'
89

910
jobs:
1011
build-spacefx-base-image-amd64:

.github/workflows/test-setup.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
type: string
1010
default: "26.1.3"
1111
pull_request:
12-
branches: [ main ]
12+
branches:
13+
- main
14+
- '[0-9]*.[0-9]*.[0-9]*-nightly'
1315

1416

1517
env:

tests/dev_cluster.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ echo "...running copy_to_spacedev.sh"
112112
# Copy the scripts ino the entry point for the devcontainer feature
113113
${WORKING_DIR}/.vscode/copy_to_spacedev.sh --output-dir ${WORKING_DIR}/.devcontainer/features/spacefx-dev/azure-orbital-space-sdk-setup
114114

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+
115118
echo "...building the devcontainer feature..."
116119
# Build the devcontainer feature
117120
devcontainer features package --force-clean-output-folder ${WORKING_DIR}/.devcontainer/features --output-folder ${WORKING_DIR}/output/spacefx-dev

0 commit comments

Comments
 (0)