Skip to content

Commit 8e3bd9e

Browse files
authored
Merge pull request #4 from microsoft/km/add_action
Adding workflows for plugin and data generator
2 parents bdae4d3 + 3fd2e27 commit 8e3bd9e

File tree

3 files changed

+109
-0
lines changed

3 files changed

+109
-0
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @microsoft/azure-orbital-space-sdk-writers
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: planetary-computer-dg-build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'datagenerators/planetary-computer/datagenerator/**'
10+
- '.github/workflows/planetary-computer-generator-build.yaml'
11+
12+
jobs:
13+
build-datagenerator-planetary-computer-amd64:
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
uses: microsoft/azure-orbital-space-sdk-github-actions/.github/workflows/data-generator-build.yaml@km/add_data_generator
19+
with:
20+
REGISTRY: ghcr.io
21+
APP_NAME: datagenerator-planetary-computer
22+
ANNOTATION: azure-orbital-space-sdk-data-generators.yaml
23+
WORKFLOW_AGENT: ubuntu-latest
24+
ARCHITECTURE: amd64
25+
DOCKER_FILE: ./datagenerators/planetary-computer/datagenerator/Dockerfiles/Dockerfile
26+
REPO_DIR: ./datagenerators/planetary-computer/datagenerator
27+
YAML_STAGING_DIRECTORY: /var/spacedev/yamls
28+
YAML_FOLDER_PATH: ./datagenerators/planetary-computer/datagenerator/k3s
29+
YAML_FILE_NAME: datagenerator-planetary-computer.yaml
30+
secrets:
31+
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
32+
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
33+
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}
34+
35+
build-datagenerator-planetary-computer-arm64:
36+
permissions:
37+
contents: read
38+
packages: write
39+
40+
uses: microsoft/azure-orbital-space-sdk-github-actions/.github/workflows/data-generator-build.yaml@km/add_data_generator
41+
with:
42+
REGISTRY: ghcr.io
43+
APP_NAME: datagenerator-planetary-computer
44+
ANNOTATION: azure-orbital-space-sdk-data-generators.yaml
45+
WORKFLOW_AGENT: spacesdk-ubuntu-2204LTS-arm64
46+
ARCHITECTURE: arm64
47+
DOCKER_FILE: ./datagenerators/planetary-computer/datagenerator/Dockerfiles/Dockerfile
48+
REPO_DIR: ./datagenerators/planetary-computer/datagenerator
49+
YAML_STAGING_DIRECTORY: /var/spacedev/yamls
50+
YAML_FOLDER_PATH: ./datagenerators/planetary-computer/datagenerator/k3s
51+
YAML_FILE_NAME: datagenerator-planetary-computer.yaml
52+
secrets:
53+
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
54+
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
55+
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: planetary-computer-plugin-build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'datagenerators/planetary-computer/plugin/**'
10+
- '.github/workflows/planetary-computer-plugin-build.yaml'
11+
12+
jobs:
13+
build-plugin-planetary-computer-amd64:
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
uses: microsoft/azure-orbital-space-sdk-github-actions/.github/workflows/plugin-build.yaml@main
19+
with:
20+
APP_PROJECT: ./src/planetary-computer-vth-plugin.csproj
21+
OUTPUT_DIR: /var/spacedev/tmp/planetary-computer-vth-plugin/output
22+
PLUGIN_STAGING_DIRECTORY: /var/spacedev/plugins/vth
23+
PLUGIN_FILE_NAME: planetary-computer-vth-plugin.dll
24+
PLUGIN_CONFIG_FILE_NAME: planetary-computer-vth-plugin.json.spacefx_plugin
25+
ANNOTATION: azure-orbital-space-sdk-data-generators.yaml
26+
WORKFLOW_AGENT: ubuntu-latest
27+
ARCHITECTURE: amd64
28+
DEV_CONTAINER_JSON: .devcontainer/planetary-computer-vth-plugin/devcontainer.json
29+
secrets:
30+
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
31+
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
32+
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}
33+
34+
build-plugin-planetary-computer-arm64:
35+
permissions:
36+
contents: read
37+
packages: write
38+
39+
uses: microsoft/azure-orbital-space-sdk-github-actions/.github/workflows/plugin-build.yaml@main
40+
with:
41+
APP_PROJECT: ./src/planetary-computer-vth-plugin.csproj
42+
OUTPUT_DIR: /var/spacedev/tmp/planetary-computer-vth-plugin/output
43+
PLUGIN_STAGING_DIRECTORY: /var/spacedev/plugins/vth
44+
PLUGIN_FILE_NAME: planetary-computer-vth-plugin.dll
45+
PLUGIN_CONFIG_FILE_NAME: planetary-computer-vth-plugin.json.spacefx_plugin
46+
ANNOTATION: azure-orbital-space-sdk-data-generators.yaml
47+
WORKFLOW_AGENT: spacesdk-ubuntu-2204LTS-arm64
48+
ARCHITECTURE: arm64
49+
DEV_CONTAINER_JSON: .devcontainer/planetary-computer-vth-plugin/devcontainer.json
50+
secrets:
51+
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
52+
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
53+
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}

0 commit comments

Comments
 (0)