diff --git a/.github/workflows/kustomize-cinder-resources.yaml b/.github/workflows/kustomize-cinder-resources.yaml new file mode 100644 index 00000000..44594b1b --- /dev/null +++ b/.github/workflows/kustomize-cinder-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for cinder-resources + +on: + pull_request: + paths: + - kustomize/cinder-resources/** + - .github/workflows/kustomize-cinder-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/cinder-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-cinder-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-glance-resources.yaml b/.github/workflows/kustomize-glance-resources.yaml new file mode 100644 index 00000000..9ecabe94 --- /dev/null +++ b/.github/workflows/kustomize-glance-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for glance-resources + +on: + pull_request: + paths: + - kustomize/glance-resources/** + - .github/workflows/kustomize-glance-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/glance-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-glance-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-heat-resources.yaml b/.github/workflows/kustomize-heat-resources.yaml new file mode 100644 index 00000000..8bed4ff6 --- /dev/null +++ b/.github/workflows/kustomize-heat-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for heat-resources + +on: + pull_request: + paths: + - kustomize/heat-resources/** + - .github/workflows/kustomize-heat-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/heat-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-heat-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-horizon-resources.yaml b/.github/workflows/kustomize-horizon-resources.yaml new file mode 100644 index 00000000..d7ec7704 --- /dev/null +++ b/.github/workflows/kustomize-horizon-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for horizon-resources + +on: + pull_request: + paths: + - kustomize/horizon-resources/** + - .github/workflows/kustomize-horizon-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/horizon-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-horizon-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-keystone-resources.yaml b/.github/workflows/kustomize-keystone-resources.yaml new file mode 100644 index 00000000..8cec6fa4 --- /dev/null +++ b/.github/workflows/kustomize-keystone-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for keystone-resources + +on: + pull_request: + paths: + - kustomize/keystone-resources/** + - .github/workflows/kustomize-keystone-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/keystone-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-keystone-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-neutron-resources.yaml b/.github/workflows/kustomize-neutron-resources.yaml new file mode 100644 index 00000000..cfac7c24 --- /dev/null +++ b/.github/workflows/kustomize-neutron-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for neutron-resources + +on: + pull_request: + paths: + - kustomize/neutron-resources/** + - .github/workflows/kustomize-neutron-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/neutron-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-neutron-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-nova-resources.yaml b/.github/workflows/kustomize-nova-resources.yaml new file mode 100644 index 00000000..2c994f4b --- /dev/null +++ b/.github/workflows/kustomize-nova-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for nova-resources + +on: + pull_request: + paths: + - kustomize/nova-resources/** + - .github/workflows/kustomize-nova-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/nova-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-nova-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-octavia-resources.yaml b/.github/workflows/kustomize-octavia-resources.yaml new file mode 100644 index 00000000..5d8542fb --- /dev/null +++ b/.github/workflows/kustomize-octavia-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for octavia-resources + +on: + pull_request: + paths: + - kustomize/octavia-resources/** + - .github/workflows/kustomize-octavia-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/octavia-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-octavia-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-placement-resources.yaml b/.github/workflows/kustomize-placement-resources.yaml new file mode 100644 index 00000000..5150186b --- /dev/null +++ b/.github/workflows/kustomize-placement-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for placement-resources + +on: + pull_request: + paths: + - kustomize/placement-resources/** + - .github/workflows/kustomize-placement-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/placement-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-placement-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-skyline-resources.yaml b/.github/workflows/kustomize-skyline-resources.yaml new file mode 100644 index 00000000..26f84f89 --- /dev/null +++ b/.github/workflows/kustomize-skyline-resources.yaml @@ -0,0 +1,32 @@ +name: Kustomize GitHub Actions for skyline-resources + +on: + pull_request: + paths: + - kustomize/skyline-resources/** + - .github/workflows/kustomize-skyline-resources.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/skyline-resources/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-skyline-resources-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml