-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from krig-collective/knacka
Release 1.0.0
- Loading branch information
Showing
83 changed files
with
8,670 additions
and
3,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
.dockerignore | ||
DOCS.md | ||
README.md | ||
.idea | ||
node_modules |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.gitignore export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitlab-ci.yml export-ignore | ||
.static export-ignore | ||
.travis.yml export-ignore | ||
|
||
|
||
* text eol=lf | ||
|
||
*.png binary | ||
*.jpg binary | ||
*.ico binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
variables: | ||
TAG: ${CI_COMMIT_REF_NAME} | ||
GIT_STRATEGY: clone | ||
|
||
stages: | ||
- test | ||
- image | ||
- deploy | ||
|
||
Docker build: | ||
stage: image | ||
image: docker:latest | ||
before_script: | ||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com | ||
script: | ||
- docker build -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME//\//\-} --no-cache . | ||
- docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME//\//\-} | ||
after_script: | ||
- docker logout registry.gitlab.com | ||
only: | ||
- /^feature\/.*$/ | ||
- master | ||
- knacka | ||
|
||
Deploy:staging: | ||
stage: deploy | ||
image: jitesoft/alpine-ssh:latest | ||
variables: | ||
HOST: git.krig.cloud | ||
USER: dokku | ||
REPO: knacka.krig.io | ||
BRANCH: ${CI_COMMIT_REF_NAME} | ||
before_script: | ||
- apk add --no-cache git | ||
- eval $(ssh-agent -s) | ||
- echo "${DEPLOY_KEY}" | ssh-add - | ||
- mkdir -p ~/.ssh | ||
- echo "${DOKKU_IDENTITY}" > ~/.ssh/known_hosts | ||
script: | ||
- if git remote | grep -sw "dokku" 2>>/dev/null; then echo "Remote existed." ; else git remote add dokku ${USER}@${HOST}:${REPO}; fi | ||
- git push dokku HEAD:${BRANCH} --force | ||
only: | ||
- knacka | ||
environment: | ||
name: staging | ||
url: https://knacka.krig.io | ||
|
||
Deploy:master: | ||
stage: deploy | ||
image: jitesoft/alpine-ssh:latest | ||
variables: | ||
HOST: git.krig.cloud | ||
USER: dokku | ||
REPO: knacka.krig.io | ||
BRANCH: ${CI_COMMIT_REF_NAME} | ||
before_script: | ||
- apk add --no-cache git | ||
- eval $(ssh-agent -s) | ||
- echo "${DEPLOY_KEY}" | ssh-add - | ||
- mkdir -p ~/.ssh | ||
- echo "${DOKKU_IDENTITY}" > ~/.ssh/known_hosts | ||
script: | ||
- if git remote | grep -sw "dokku" 2>>/dev/null; then echo "Remote existed." ; else git remote add dokku ${USER}@${HOST}:${REPO}; fi | ||
- git push dokku HEAD:${BRANCH} --force | ||
only: | ||
- master | ||
environment: | ||
name: production | ||
url: https://krig.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Contribution guidelines. | ||
|
||
## Issues | ||
|
||
Feel free to add issues in the github repository issue tracker. | ||
|
||
## Code Standard | ||
|
||
### JavaScript | ||
|
||
This repository uses the `semistandard` js standard. Which is same as `standard` but with semicolons sprinkled on top! | ||
Gulp will run the semistandard check on build, make sure it's not red! | ||
|
||
## Git flow | ||
|
||
We try to stick as much as possible to the standard git-flow methodology. | ||
No one will be shot if one fails to do it correctly! | ||
|
||
If you are unaware of how git-flow works, in short: | ||
|
||
### Features | ||
|
||
Each feature have to have a issue set. When it does, branch out from the default branch (`knacka`) for each new feature. | ||
Branch names should be formatted as `feature/<issuenumber>-short-description`. When a feature is complete, push to origin and create a pullrequest. If wanted, add `Closes #<issuenumber>` in the PR message. | ||
|
||
### Releases | ||
|
||
A release gets its own branch and tag. | ||
|
||
### Hotfixes | ||
|
||
Hotfixes are done against release branches. All hotfixes should have their own branches and be formatted as `hotfix/<issuenumber>-short-description`. | ||
When complete, a pullrequest should be opened to the given release branch. | ||
|
||
### Commit messages | ||
|
||
Commits should include messages with a description of the changes. You don't have to write an essay, just a line or two. | ||
|
||
Example: | ||
|
||
> Updated the Contribution guidelines, added info about commit messages. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM jitesoft/node-yarn:stable as build | ||
ENV NODE_ENV=production | ||
RUN yarn global add gulp-cli | ||
COPY . /app | ||
WORKDIR /app | ||
RUN yarn install && gulp build | ||
|
||
FROM jitesoft/lighttpd | ||
ENV PORT=5000 | ||
EXPOSE 5000 | ||
COPY --from=build /app/app /var/www/html | ||
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.