Migrate from Drone CI to Woodpecker CI
Replace .drone.yml with .woodpecker.yaml using official woodpeckerci/plugin-kaniko image. Update base image to Alpine 3.22.2.
This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -1,19 +0,0 @@
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: harbor.ntppool.org/ntppool/drone-kaniko:main
|
||||
pull: always
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
repo: library/static-web
|
||||
registry: harbor.ntppool.org
|
||||
auto_tag: true
|
||||
tags: SHA7,${DRONE_SOURCE_BRANCH}
|
||||
cache: true
|
||||
username:
|
||||
from_secret: harbor_library_username
|
||||
password:
|
||||
from_secret: harbor_library_password
|
||||
18
.woodpecker.yaml
Normal file
18
.woodpecker.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
when:
|
||||
- event: [push, pull_request, manual]
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: woodpeckerci/plugin-kaniko
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: harbor.ntppool.org
|
||||
repo: library/static-web
|
||||
tags:
|
||||
- ${CI_COMMIT_SHA:0:7}
|
||||
- ${CI_COMMIT_BRANCH}
|
||||
cache: true
|
||||
username:
|
||||
from_secret: harbor_library_username
|
||||
password:
|
||||
from_secret: harbor_library_password
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM harbor.ntppool.org/perlorg/base-os:3.22.0
|
||||
FROM harbor.ntppool.org/perlorg/base-os:3.22.2
|
||||
ENV BUILD_VERSION 1
|
||||
USER root
|
||||
WORKDIR /web
|
||||
|
||||
Reference in New Issue
Block a user