Skip to content

Commit

Permalink
Rename repo and default branch (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanthoss authored Nov 5, 2022
1 parent d03de17 commit 84cea50
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CodeQL

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]
schedule:
- cron: '5 4 * * 0'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Docker

on:
push:
branches: [ master ]
branches: [ main ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ master ]
branches: [ main ]
schedule:
- cron: '15 14 * * *'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint Code Base
on:
push:
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand All @@ -20,7 +20,7 @@ jobs:
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Air Quality -> InfluxDB Bridge
# Air Quality Bridge

This Flask-based server accepts particulate matter/temperature/humidity data from a [sensor.community sensor](https://sensor.community/en/sensors/airrohr) and writes it to a InfluxDB 2.0 server. It also calculates the Air Quality Index (AQI) with [hrbonz/python-aqi](https://github.com/hrbonz/python-aqi).

Expand Down Expand Up @@ -34,12 +34,12 @@ If everything is configured correctly, executing `curl -X GET http://localhost:5
If you want to build the Docker image locally, execute:

```shell
docker build -t air-quality-influxdb-bridge:devel .
docker build -t air-quality-bridge:devel .
```

## Deployment

The Docker image from the repository gets automatically build and published to the GitHub Container Registry as [ghcr.io/stefanthoss/air-quality-influxdb-bridge](https://github.com/stefanthoss/air-quality-influxdb-bridge/pkgs/container/air-quality-influxdb-bridge).
The Docker image from the repository gets automatically build and published to the GitHub Container Registry as [ghcr.io/stefanthoss/air-quality-bridge](https://github.com/stefanthoss/air-quality-bridge/pkgs/container/air-quality-bridge).

The best way to deploy the application is with Docker Compose. Download the `docker-compose.yml` file, change the environment variables according to your local setup, and start the Docker service with `docker-compose up`:

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: "3"

services:
air-quality-influxdb-bridge:
image: ghcr.io/stefanthoss/air-quality-influxdb-bridge:latest
container_name: air-quality-influxdb-bridge
air-quality-bridge:
image: ghcr.io/stefanthoss/air-quality-bridge:latest
container_name: air-quality-bridge
restart: unless-stopped
ports:
- "5000:5000"
Expand Down

0 comments on commit 84cea50

Please sign in to comment.