Skip to content

Commit

Permalink
feat: Add workflows for all of the service resources
Browse files Browse the repository at this point in the history
This change add workflows for all of the service resources. This change will
exervice the build process for the service resources.

Signed-off-by: Kevin Carter <[email protected]>
  • Loading branch information
cloudnull committed Jan 30, 2024
1 parent 73f8926 commit 734aa11
Show file tree
Hide file tree
Showing 10 changed files with 320 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-cinder-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-glance-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-heat-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-horizon-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-keystone-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-neutron-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-nova-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-octavia-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-placement-resources.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/kustomize-skyline-resources.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 734aa11

Please sign in to comment.