merged: app-runner-images.yaml & iac-runner-images.yaml

This commit is contained in:
Haitao Pan 2023-03-10 11:56:30 +08:00
parent e6917e51fb
commit 5810fa4741
8 changed files with 143 additions and 183 deletions

View File

@ -0,0 +1,72 @@
name: Build & push chart builder apline base image
on:
pull_request:
push:
paths:
- '.github/workflows/app-runner-images.yaml'
- 'oci/app-runner/kube-tools-alpine/ca.crt'
- 'oci/app-runner/kube-tools-alpine/Makefile'
- 'oci/app-runner/kube-tools-alpine/Dockerfile'
- 'oci/app-runner/kube-tools-alpine/repositories'
- 'oci/app-runner/chart-builder-alpine/ca.crt'
- 'oci/app-runner/chart-builder-alpine/Makefile'
- 'oci/app-runner/chart-builder-alpine/Dockerfile'
- 'oci/app-runner/chart-builder-alpine/repositories'
- 'oci/app-runner/image-builder-alpine/Dockerfile'
branches:
- main
jobs:
chart-builder-alpine:
runs-on: ubuntu-latest
name: build chart builder alpine base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push chart builder alpine base image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/app-runner/chart-builder-alpine/'
build_file: 'Dockerfile'
image: public/chart-builder-alpine
tag: latest
cache: false
cache_registry: cache
image-buider-alpine:
runs-on: ubuntu-latest
name: build chart builder alpine base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push image builder alpine base image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/app-runner/image-builder-alpine/'
build_file: 'Dockerfile'
image: devops/image-builder-alpine
tag: latest
cache: false
kube-tools-alpine:
runs-on: ubuntu-latest
name: build k8s app runner alpine base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push k8s app runner alpine base image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/app-runner/kube-tools-alpine/'
build_file: 'Dockerfile'
image: devops/kube-tools-alpine
tag: latest
cache: false
cache_registry: cache

View File

@ -1,32 +0,0 @@
name: Build & push chart builder apline base image
on:
pull_request:
push:
paths:
- '.github/workflows/chart-builder-alpine.yaml'
- 'oci/app-runner/chart-builder-alpine/ca.crt'
- 'oci/app-runner/chart-builder-alpine/Makefile'
- 'oci/app-runner/chart-builder-alpine/Dockerfile'
- 'oci/app-runner/chart-builder-alpine/repositories'
branches:
- main
jobs:
base-image:
runs-on: ubuntu-latest
name: build chart builder alpine base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push chart builder alpine base image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/app-runner/chart-builder-alpine/'
build_file: 'Dockerfile'
image: public/chart-builder-alpine
tag: latest
cache: false
cache_registry: cache

View File

@ -0,0 +1,71 @@
name: Build & push ci runner terraform for aws image
on:
pull_request:
push:
paths:
- '.github/workflows/iac-runner-images.yaml'
- 'oci/iac-runner/terraform-aws-finops/main.tf'
- 'oci/iac-runner/terraform-aws-finops/Dockerfile'
- 'oci/iac-runner/terraform-aws-finops/.terraformrc'
- 'oci/iac-runner/terraform-aws/Dockerfile'
- 'oci/iac-runner/pulumi-aws/main.tf'
- 'oci/iac-runner/pulumi-aws/Dockerfile'
- 'oci/iac-runner/pulumi-aws/.terraformrc'
branches:
- main
jobs:
terraform-aws-finops:
runs-on: ubuntu-latest
name: Build ci runner terraform for aws image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push terraform for aws image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/iac-runner/terraform-aws-finops/'
build_file: 'Dockerfile'
image: public/terraform-aws
tag: latest
cache: true
cache_registry: cache
terraform-aws:
runs-on: ubuntu-latest
name: Build ci runner terraform for aws image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push terraform for aws custom image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/iac-runner/terraform-aws/'
build_file: 'Dockerfile'
image: public/terraform-aws
tag: latest
cache: true
cache_registry: cache
pulumi-aws:
runs-on: ubuntu-latest
name: Build ci runner pulumi for aws image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push pulumi for aws image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/iac-runner/pulumi-aws/'
build_file: 'Dockerfile'
image: devops/pulumi-aws
tag: latest
cache: true
cache_registry: cache

View File

@ -1,28 +0,0 @@
name: Build & push image builder apline base image
on:
pull_request:
push:
paths:
- '.github/workflows/image-builder-alpine.yaml'
- 'oci/app-runner/image-builder-alpine/Dockerfile'
branches:
- main
jobs:
base-image:
runs-on: ubuntu-latest
name: build chart builder alpine base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push image builder alpine base image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/app-runner/image-builder-alpine/'
build_file: 'Dockerfile'
image: devops/image-builder-alpine
tag: latest
cache: false

View File

@ -1,32 +0,0 @@
name: Build & push k8s app runner apline base image
on:
pull_request:
push:
paths:
- '.github/workflows/kube-tools-alpine.yaml'
- 'oci/app-runner/kube-tools-alpine/ca.crt'
- 'oci/app-runner/kube-tools-alpine/Makefile'
- 'oci/app-runner/kube-tools-alpine/Dockerfile'
- 'oci/app-runner/kube-tools-alpine/repositories'
branches:
- main
jobs:
base-image:
runs-on: ubuntu-latest
name: build k8s app runner alpine base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push k8s app runner alpine base image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/app-runner/kube-tools-alpine/'
build_file: 'Dockerfile'
image: devops/kube-tools-alpine
tag: latest
cache: false
cache_registry: cache

View File

@ -1,31 +0,0 @@
name: Build & push ci runner pulumi for aws image
on:
pull_request:
push:
paths:
- 'oci/iac-runner/pulumi-aws/main.tf'
- 'oci/iac-runner/pulumi-aws/Dockerfile'
- 'oci/iac-runner/pulumi-aws/.terraformrc'
- '.github/workflows/pulumi-aws.yaml'
branches:
- main
jobs:
base-image:
runs-on: ubuntu-latest
name: Build ci runner pulumi for aws image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push pulumi for aws image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/iac-runner/pulumi-aws/'
build_file: 'Dockerfile'
image: devops/pulumi-aws
tag: latest
cache: true
cache_registry: cache

View File

@ -1,31 +0,0 @@
name: Build & push ci runner terraform for aws image
on:
pull_request:
push:
paths:
- 'oci/iac-runner/terraform-aws-finops/main.tf'
- 'oci/iac-runner/terraform-aws-finops/Dockerfile'
- 'oci/iac-runner/terraform-aws-finops/.terraformrc'
- '.github/workflows/terraform-aws-finops.yaml'
branches:
- main
jobs:
base-image:
runs-on: ubuntu-latest
name: Build ci runner terraform for aws image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push terraform for aws image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/iac-runner/terraform-aws-finops/'
build_file: 'Dockerfile'
image: public/terraform-aws
tag: latest
cache: true
cache_registry: cache

View File

@ -1,29 +0,0 @@
name: Build & push ci runner terraform for aws custom image
on:
pull_request:
push:
paths:
- '.github/workflows/terraform-aws.yaml'
- 'oci/iac-runner/terraform-aws/Dockerfile'
branches:
- main
jobs:
base-image:
runs-on: ubuntu-latest
name: Build ci runner terraform for aws image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push terraform for aws custom image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/iac-runner/terraform-aws/'
build_file: 'Dockerfile'
image: public/terraform-aws
tag: latest
cache: true
cache_registry: cache