oci/app-runner/kube-base-alpine: update
This commit is contained in:
parent
d625a010a0
commit
96b9cc0f44
31
.github/workflows/iac-runner-terraform.yaml
vendored
31
.github/workflows/iac-runner-terraform.yaml
vendored
@ -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
|
||||
16
oci/app-runner/kube-base-alpine/.gitlab-ci.yml
Normal file
16
oci/app-runner/kube-base-alpine/.gitlab-ci.yml
Normal 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"
|
||||
Loading…
Reference in New Issue
Block a user