artifacts/.github/workflows/fluxcd/flux-source-controller-image.yaml
2023-02-16 13:07:27 +08:00

29 lines
785 B
YAML

name: Build & push source-controller image
on:
pull_request:
push:
paths:
- 'fluxcd/flux-source-controller.Dockerfile'
- '.github/workflows/fluxcd/flux-source-controller-image.yaml'
branches:
- main
jobs:
docker:
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