From 6c5df031e7ea2492e7928a745f845b3fc6d48124 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Thu, 9 Mar 2023 20:17:04 +0800 Subject: [PATCH] fluxcd-images.yaml: define job depends --- .github/workflows/fluxcd-images.yaml | 37 +++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fluxcd-images.yaml b/.github/workflows/fluxcd-images.yaml index 495b5e5..051e48e 100644 --- a/.github/workflows/fluxcd-images.yaml +++ b/.github/workflows/fluxcd-images.yaml @@ -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