-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e34f85
commit bb433e3
Showing
7 changed files
with
115 additions
and
2 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,9 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
|
||
### Extra lines below are preserved ### |
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,31 @@ | ||
name: docker creation | ||
|
||
# Run on PR requests. And on main itself. | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or | ||
# in parallel | ||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can | ||
# access it | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build docker | ||
run: docker compose build | ||
|
||
- name: Publish the Docker image | ||
run: | | ||
docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io | ||
docker tag docker.io/library/floodsmart-status-overview-dashboard-web ghcr.io/nens/wim:main | ||
docker push ghcr.io/nens/wim:main | ||
if: github.ref == 'refs/heads/main' | ||
# Running this job only for main branch. |
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,32 @@ | ||
# Generated by nens-meta. | ||
# See https://nens-meta.readthedocs.io/en/latest/config-files.html for info. | ||
# If you want this file to be left alone, add "nens_meta_leave_alone" in | ||
# all caps somewhere in this file in a comment. | ||
# | ||
|
||
name: nens-meta | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
nens-meta: | ||
name: nens-meta | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- uses: pre-commit/[email protected] | ||
|
||
### Extra lines below are preserved ### |
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,24 @@ | ||
default_language_version: | ||
python: python3 | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
args: [--allow-multiple-documents] | ||
- id: check-toml | ||
- id: check-added-large-files | ||
|
||
### Extra lines below are preserved ### | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.4.2 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: ["--fix"] | ||
# Run the formatter. | ||
- id: ruff-format |
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,17 @@ | ||
## WIM (Werkdruk Inzicht en Monitoor) | ||
Testing phase -- voor al uw inzicht in wie wanneer druk is binnen WIO | ||
|
||
## Toevoegen van nieuwe collega's | ||
|
||
## Verwijderen van oude collega's | ||
|
||
|
||
|
||
## Development | ||
|
||
Github actions build the docker image that's automatically deployed to the dashboard | ||
server. Those actions also check a bit of formatting and do some basic syntax checks. To | ||
do those checks + automatic fixes locally, install "pre-commit" and run it: | ||
|
||
$ pip install pre-commit # You only need to do this once on your laptop | ||
$ pre-commit run --all # This runs checks + formatting |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ week,druk,note | |
41,, | ||
42,, | ||
43,, | ||
44, Druk,wimmm | ||
44,Druk,wimmm | ||
45,Goed,lekker werken | ||
46,, | ||
47,, | ||
|
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