1
0
Fork 0

initial commit
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Torma Kristóf 2024-04-04 09:56:09 +02:00
commit ebf99c826e
2 changed files with 35 additions and 0 deletions

30
.drone.yml Normal file
View File

@ -0,0 +1,30 @@
kind: pipeline
type: docker
name: default
steps:
- name: donwload_code
image: ubuntu
pull: always
commands:
- apt update
- apt install -y jq curl unzip
- curl https://api.github.com/repos/magicbug/cloudlog/releases/latest | jq -r '.zipball_url' | xargs -I{} curl -L {} --output cloudlog.z
ip
- unzip cloudlog.zip
- mv $(find . -name 'magicbug-Cloudlog-*' -type d -prune -print) cloudlog
- name: kaniko
image: plugins/kaniko
settings:
registry: registry.kmlabz.com
repo: registry.kmlabz.com/stargate-cluster/${DRONE_REPO_NAME}
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
context: /drone/src
dockerfile: /drone/src/Dockerfile
tags:
- latest
- ${DRONE_BUILD_NUMBER}

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM php:8.2-fpm
USER www-data
COPY cloudlog/ /var/www/html/