fluxcd-images.yaml: define job depends

This commit is contained in:
Haitao Pan 2023-03-09 20:17:04 +08:00
parent 70d0f4483c
commit 6c5df031e7

View File

@ -15,9 +15,28 @@ on:
- main
jobs:
base-image:
runs-on: ubuntu-latest
name: Build alpine base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push alpine with custom ca image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: './oci/base/alpine'
build_file: 'Dockerfile'
image: public/alpine-ca
tag: latest
cache: true
cache_registry: cache
flux-cli:
name: Build docker image
runs-on: ubuntu-latest
needs: [base-image]
steps:
- uses: actions/checkout@master
@ -33,8 +52,9 @@ jobs:
cache: true
cache_registry: cache
fluxcd-helm-controller:
runs-on: ubuntu-latest
name: Build docker image
runs-on: ubuntu-latest
needs: [base-image]
steps:
- uses: actions/checkout@master
@ -50,8 +70,9 @@ jobs:
cache: true
cache_registry: cache
fluxcd-image-automation-controller:
runs-on: ubuntu-latest
name: Build docker image
runs-on: ubuntu-latest
needs: [base-image]
steps:
- uses: actions/checkout@master
@ -67,8 +88,9 @@ jobs:
cache: true
cache_registry: cache
flux-image-reflector-controller:
runs-on: ubuntu-latest
name: Build docker image
runs-on: ubuntu-latest
needs: [base-image]
steps:
- uses: actions/checkout@master
@ -84,8 +106,9 @@ jobs:
cache: true
cache_registry: cache
flux-kustomize-controller:
runs-on: ubuntu-latest
name: Build docker image
runs-on: ubuntu-latest
needs: [base-image]
steps:
- uses: actions/checkout@master
@ -101,8 +124,9 @@ jobs:
cache: true
cache_registry: cache
flux-notification-controller:
runs-on: ubuntu-latest
name: Build docker image
runs-on: ubuntu-latest
needs: [base-image]
steps:
- uses: actions/checkout@master
@ -118,8 +142,9 @@ jobs:
cache: true
cache_registry: cache
flux-source-controller:
runs-on: ubuntu-latest
name: Build docker image
runs-on: ubuntu-latest
needs: [base-image]
steps:
- uses: actions/checkout@master