artifacts/.github/workflows/flux-cli-image.yaml
Haitao Pan 630b67d91e update
2023-01-13 10:01:19 +08:00

29 lines
718 B
YAML

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