Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0533868bf8 | |||
| 7789e0054a | |||
| 8621903d19 | |||
| 20a5c7cdaa | |||
| fc0b8cfbea | |||
| 5a064a882a |
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
|
|
||||||
27
.woodpecker.yaml
Normal file
27
.woodpecker.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
when:
|
||||||
|
- event: [push, pull_request, manual, tag]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: generate-tags
|
||||||
|
image: ghcr.io/abh/woodpecker-docker-tags-plugin:sha-86e52ce
|
||||||
|
settings:
|
||||||
|
tags: |
|
||||||
|
branch
|
||||||
|
sha
|
||||||
|
edge
|
||||||
|
raw -v build-${CI_PIPELINE_NUMBER}
|
||||||
|
semver --format {{major}}
|
||||||
|
semver --format {{major}}.{{minor}}
|
||||||
|
semver --format {{major}}.{{minor}}.{{patch}}
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: woodpeckerci/plugin-kaniko
|
||||||
|
settings:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
registry: harbor.ntppool.org
|
||||||
|
repo: library/static-web
|
||||||
|
cache: true
|
||||||
|
username:
|
||||||
|
from_secret: harbor_library_username
|
||||||
|
password:
|
||||||
|
from_secret: harbor_library_password
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
FROM harbor.ntppool.org/perlorg/base-os:3.19.0
|
FROM harbor.ntppool.org/perlorg/base-os:3.23.3
|
||||||
ENV BUILD_VERSION 1
|
ENV BUILD_VERSION 1
|
||||||
USER root
|
USER root
|
||||||
WORKDIR /web
|
WORKDIR /web
|
||||||
VOLUME /git
|
VOLUME /git
|
||||||
VOLUME /web/config
|
VOLUME /web/config
|
||||||
RUN apk --no-cache upgrade
|
RUN apk --no-cache upgrade
|
||||||
RUN apk --no-cache add apache2 apache2-utils apache2-proxy apache2-ssl apr-util-dbd_sqlite3 sqlite
|
RUN apk --no-cache add apache2 apache2-utils apache2-proxy apache2-http2 apache2-brotli apache2-ssl apr-util-dbd_sqlite3 sqlite
|
||||||
#RUN mkdir /run/apache2; chown apache:apache /run/apache2
|
#RUN mkdir /run/apache2; chown apache:apache /run/apache2
|
||||||
RUN mv /etc/apache2/conf.d/proxy.conf /etc/apache2/conf.d/proxy.conf.disabled
|
RUN mv /etc/apache2/conf.d/proxy.conf /etc/apache2/conf.d/proxy.conf.disabled
|
||||||
RUN ln -s /dev/stderr /var/log/apache2/error.log
|
RUN ln -s /dev/stderr /var/log/apache2/error.log
|
||||||
|
|||||||
Reference in New Issue
Block a user