artifacts/.github/workflows/flux-image-reflector-controller.yaml
2023-01-13 23:52:42 +08:00

49 lines
1.4 KiB
YAML

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