oci/app-runner/kube-base-alpine: update

This commit is contained in:
Haitao Pan 2023-02-20 16:35:16 +08:00
parent d625a010a0
commit 96b9cc0f44
10 changed files with 16 additions and 31 deletions

View File

@ -1,31 +0,0 @@
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

View File

@ -0,0 +1,16 @@
stages:
- build
build-image-job:
stage: build
image:
name: artifact.onwalk.net/k8s/kaniko-executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"artifact.onwalk.net/k8s\":{\"auth\":\"$(printf "%s:%s" "admin" "${PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "artifact.onwalk.net/devops/alpine-ci-runner:latest"