commit ebf99c826e41363663c07960bd8c1b2e2bf74837 Author: Kristóf Torma Date: Thu Apr 4 09:56:09 2024 +0200 initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f12241c --- /dev/null +++ b/.drone.yml @@ -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} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b016f22 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM php:8.2-fpm + +USER www-data + +COPY cloudlog/ /var/www/html/