Skip to content

Commit

Permalink
Merge pull request #39 from open-zaak/new-design
Browse files Browse the repository at this point in the history
New website design OpenZaak
  • Loading branch information
felixfaassen authored Jan 4, 2021
2 parents e37ba40 + 08c125b commit 32035b2
Show file tree
Hide file tree
Showing 294 changed files with 25,142 additions and 31,447 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test
on:
push:
branches:
- new-design
pull_request:

env:
CI: "true"

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache .npm
uses: actions/cache@v1
env:
cache-name: cache-dot-npm
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Setup Node 12
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm ci

- name: Run build
run: npm run build
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy website
on:
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: enriikke/gatsby-gh-pages-action@v2
with:
deploy-branch: master
# gatsby-args: --prefix-paths
access-token: ${{ secrets.ACCESS_TOKEN }}
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
*.gem
.bundle
.sass-cache
_site
Gemfile.lock
.idea
.cache/
node_modules/
public/
.DS_Store
npm-debug.log
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
openzaak.publiccode.net
openzaak.org
39 changes: 28 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
# CONTRIBUTING
# Contributing

Welcome, new contributors!
We – the maintainers of this project – value your input, enjoy feedback and welcome improvements to our Open Source projects.

Please:
We love issues and pull requests from everyone.

- contribute [by making pull requests](https://github.com/publiccodenet/repository-template/pulls)
- give us feedback by [raising an issue](https://github.com/publiccodenet/repository-template/issues)
## Problems, suggestions and questions

## How to get involved
You don't need to change any of our code or documentation to be a contributor. Many contributors add to our software by reporting problems, suggesting changes and asking simple and difficult questions. To do this, you can create a [GitHub Issue](https://help.github.com/articles/creating-an-issue/) for this project.

[Explain how contributors can get involved.]
## Documentation and code

## Contact us
If you want to add to the documentation or code of one of our projects you should make a Pull Request. If you never used GitHub, get up to speed with [Understanding the GitHub Flow](https://guides.github.com/introduction/flow/).

You can contact the maintainers at: [add email address, forum, mailing list, etc]
### 1. Make your changes

## Responsible disclosure
Add your changes in commits [with a message that explains them](https://github.com/alphagov/styleguides/blob/master/git.md#commit-messages). Document choices or decisions you make in the commit message, this will enable everyone to be informed of your choices in the future.

[Add an email address for security issues and responsible disclosure.]
If you are adding code, make sure it adheres to the project's code and documentation style guide before you submit your pull request. If the project uses tests, make sure to write tests that show the behaviour of the newly added or changed code. You can read more about how to document, test and style your code in the project's [`README`](README.md).

### 2. Pull Request

When submitting the pull request, please accompany it with a description of the problem you are trying to address and the issue numbers that this Pull Request fixes/addresses.

### 3. Improve

It could be that your contribution can be merged immediately by a maintainer. However, usually, a new Pull Request needs some improvements before it can be merged. Other contributors (or helper robots) might have feedback. If this is the case the reviewing maintainer will help you improve your documentation and code.

If your documentation and code have passed human review and have passed the automated tests, it is merged.

### 4. Celebrate

Your ideas, documentation and code have become an integral part of this project. You are the Open Source hero we need.

---

For more information on how to use and contribute to this project, please read the [`README`](README.md).
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM node:12.18.0 AS build

RUN apt-get update && \
apt-get install -y libgl1-mesa-glx

COPY package.json \
package-lock.json \
/app/

WORKDIR /app

RUN npm install

COPY . /app

ENV GATSBY_TELEMETRY_DISABLED=1
RUN ./node_modules/.bin/gatsby build --prefix-paths

FROM nginx:alpine
EXPOSE 8080

RUN adduser -D -u 1001 appuser

RUN touch /var/run/nginx.pid && \
chown -R appuser /var/run/nginx.pid && \
chown -R appuser /var/cache/nginx

COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY docker/default.conf /etc/nginx/conf.d/default.conf

COPY --from=build /app/public /usr/share/nginx/html

USER appuser
16 changes: 0 additions & 16 deletions Gemfile

This file was deleted.

Loading

0 comments on commit 32035b2

Please sign in to comment.