Commit 3b26d6a1 authored by Johannes Winter's avatar Johannes Winter
Browse files

CI/CD

parent da1fbece
Pipeline #367 passed with stage
in 1 minute and 48 seconds
stages:
- deploy
variables:
EMAIL: "status@ecobytes.net"
deploy-prod:
image: ilyasemenov/gitlab-ci-git-push
stage: deploy
environment:
name: production
url: $APP_NAME
only:
- master
script:
- git-push ssh://dokku@dokku.ecobytes.net:22/$APP_NAME
- ssh dokku@dokku.ecobytes.net config:set --no-restart $APP_NAME DOKKU_LETSENCRYPT_EMAIL=$EMAIL
- ssh dokku@dokku.ecobytes.net letsencrypt $APP_NAME
FROM node:alpine
WORKDIR /usr/src/app
RUN apk update && apk add nodejs git
RUN npm install -g webpro/reveal-md
RUN mkdir -p /usr/lib/node_modules/reveal-md/node_modules/reveal.js/images
COPY . /usr/src/app/
#EXPOSE 5000
CMD ["sh", "-c", "reveal-md slides.md --theme theme.css --port 5000"]
<meta http-equiv="refresh" content="0; URL='http://farmhacks.allmende.io/farmhacks.md'" />
<meta http-equiv="refresh" content="0; URL='https://farmhacks.allmende.io/slides.md'" />
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment