Add initial Drone CI configuration, .gitignore, and Dockerfile
This commit is contained in:
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch: [ main ]
|
||||||
|
event: [ push ]
|
||||||
|
|
||||||
|
# Kill the default clone entirely
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: manual clone
|
||||||
|
image: alpine/git
|
||||||
|
environment:
|
||||||
|
GIT_ASKPASS: 'echo' # prevent interactive prompts
|
||||||
|
commands:
|
||||||
|
- git clone --depth=50 "https://fencl:5ece5d37cd3a9988a78983b10cede284e25717f8@git.internet-master.cz/fencl/davisfe.cz.git" .
|
||||||
|
- git fetch origin +refs/heads/deployment:refs/remotes/origin/deployment
|
||||||
|
- git checkout -qf origin/deployment
|
||||||
|
- git log -1 --oneline
|
||||||
|
- ls -la
|
||||||
|
|
||||||
|
- name: build and push to gitea registry
|
||||||
|
image: plugins/docker:20.16
|
||||||
|
settings:
|
||||||
|
registry: git.internet-master.cz
|
||||||
|
repo: git.internet-master.cz/fencl/davisfe.cz
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
username: fencl
|
||||||
|
password: 5ece5d37cd3a9988a78983b10cede284e25717f8
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.idea
|
||||||
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#FROM php:8.0-apache
|
||||||
|
FROM --platform=linux/amd64 php:8.4-apache
|
||||||
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
|
#COPY index.php index.php
|
||||||
|
|
||||||
|
RUN mkdir /app
|
||||||
|
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||||
|
|
||||||
|
COPY adf/saveData.php /var/www/html/saveData.php
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# ADD extras/dockerstart.sh /usr/local/servicemix/bin/
|
||||||
|
# RUN chmod 755 /usr/local/bin/dockerstart.sh
|
||||||
|
|
||||||
|
RUN chown -R www-data:www-data /app && a2enmod rewrite
|
||||||
|
RUN docker-php-ext-install mysqli pdo pdo_mysql
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
Reference in New Issue
Block a user