-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1009 Bytes
/
generate-crd-java.yml
File metadata and controls
38 lines (35 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Generate Java CRD Model
on:
workflow_dispatch:
env:
IMAGE_NAME: ghcr.io/kubernetes-client/java/crd-model-gen
IMAGE_TAG: v1.0.6
GEN_DIR: crd-gen
permissions:
contents: read
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run CRD Model Generation
run: |
mkdir -p ${GEN_DIR}
docker run \
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":"$(pwd)" \
--network host \
${IMAGE_NAME}:${IMAGE_TAG} \
/generate.sh \
$(find "$(pwd)/charts/singularity-operator/crds" -type f | sed 's/^/-u /')
-n gg.innit.singularity \
-p gg.innit.singularity.impl.k8s.client \
-o "$(pwd)/${GEN_DIR}"
ls -lh ${GEN_DIR}
- uses: actions/upload-artifact@v3
with:
name: generated-java-crd-model
path: |
${{ env.GEN_DIR }}