add flux-notification-controller Dockerfile

This commit is contained in:
Haitao Pan 2023-01-13 15:26:37 +08:00
parent c8c030ee87
commit 6791b503d6
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,28 @@
name: Build & push notification-controller image
on:
pull_request:
push:
paths:
- '.github/workflows/flux-notification-controller-image.yaml'
- 'dockerfiles/flux-notification-controller.Dockerfile'
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
name: Build docker image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push fluxcd/notification-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-notification-controller.Dockerfile
image: k8s/fluxcd/notification-controller
tag: v0.24.0
cache: true
cache_registry: cache

View File

@ -0,0 +1,10 @@
FROM ghcr.io/fluxcd/notification-controller:v0.24.0 as build
FROM artifact.onwalk.net/k8s/alpine-ca:3.13 as prod
LABEL org.opencontainers.image.source="https://github.com/fluxcd/notification-controller"
RUN apk add --no-cache ca-certificates tini
COPY --from=build /usr/local/bin/notification-controller /usr/local/bin/
USER 65534:65534
ENTRYPOINT [ "/sbin/tini", "--", "notification-controller" ]