artifacts/.github/workflows/flux-source-controller-image.yaml
2023-02-15 16:32:57 +08:00

49 lines
1.4 KiB
YAML

name: Build & push source-controller image
on:
pull_request:
push:
paths:
- 'base/alpine/Dockerfile'
- '.github/workflows/alpine-with-custom-ca.yaml'
- 'fluxcd/flux-source-controller.Dockerfile'
- '.github/workflows/flux-source-controller-image.yaml'
branches:
- main
jobs:
docker:
needs: base-image
runs-on: ubuntu-latest
name: Build docker image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push fluxcd/source-controller image'
uses: aevea/action-kaniko@v0.10.0
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
build_file: fluxcd/flux-source-controller.Dockerfile
image: k8s/fluxcd/source-controller
tag: v0.25.9
cache: true
cache_registry: cache
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 }}
build_file: base/alpine/Dockerfile
image: k8s/alpine-ca
tag: latest
cache: true
cache_registry: cache