32 lines
878 B
YAML
32 lines
878 B
YAML
name: Build & push ci runner terraform base image
|
|
on:
|
|
pull_request:
|
|
push:
|
|
paths:
|
|
- 'oci/ci-runner/terraform/main.tf'
|
|
- 'oci/ci-runner/terraform/Dockerfile'
|
|
- 'oci/ci-runner/terraform/.terraformrc'
|
|
- '.github/workflows/iac-runner-terraform.yaml'
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
base-image:
|
|
runs-on: ubuntu-latest
|
|
name: Build ci runner terraform 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 }}
|
|
path: './oci/ci-runner/terraform'
|
|
build_file: 'Dockerfile'
|
|
image: devops/ci-runner-terraform
|
|
tag: latest
|
|
cache: true
|
|
cache_registry: cache
|