Setup CircleCI

This commit is contained in:
2018-04-16 13:03:25 +01:00
parent 116b992efd
commit 1149809c18
3 changed files with 12 additions and 34 deletions

12
.circleci/config.yml Normal file
View File

@@ -0,0 +1,12 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:8.11.1
steps:
- checkout
- run: sudo apt install -y rsync
- run: npm install
- run: npm run build
- run: rsync -avzu --progress -h theme $SSH_USER@$SSH_IP:~/windycoys_theme

View File

@@ -1,12 +0,0 @@
FROM node:9.7.1-alpine
COPY ./ /var/www/html/wp-content/themes
WORKDIR /var/www/html/wp-content/themes
ENV NODE_ENV production
RUN apk add --no-cache curl
RUN npm install
CMD ["sh", "build.sh"]

View File

@@ -1,22 +0,0 @@
wordpress:
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_PASSWORD=password
- WORDPRESS_DB_USER=windycoys
image: 'wordpress:4.9.4-php5.6-apache'
links:
- db
ports:
- "80:80"
volumes:
- ./.tmp/wp-content:/var/www/html/wp-content
- ./theme:/var/www/html/wp-content/themes/windycoys
db:
environment:
- MYSQL_DATABASE=wordpress
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=windycoys
image: 'mariadb:10.3.4'
volumes:
- ./.tmp/mysql:/var/lib/mysql