Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
push:

name: Build

jobs:

docker-build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t ghcr.io/spaceapi-community/spaceapi-sensor-logger:latest .
36 changes: 0 additions & 36 deletions .github/workflows/ci.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- master
schedule:
- cron: '30 3 * * 2'

name: Publish

jobs:

docker-publish:
name: Publish Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build \
--no-cache \
-t ghcr.io/spaceapi-community/spaceapi-sensor-logger:latest \
-t ghcr.io/spaceapi-community/spaceapi-sensor-logger:v1 \
--label "org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
.
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker image
run: |
docker push -a ghcr.io/spaceapi-community/spaceapi-sensor-logger
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SpaceAPI InfluxDB Sensor Logger

[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spaceapi/influxdb-sensor-logger/latest)](https://hub.docker.com/r/spaceapi/influxdb-sensor-logger)
[![Docker Image][docker-image-badge]][docker-image]

A Python 3 script to relay sensor values from a SpaceAPI endpoint to an
InfluxDB instance so it can be viewed in Grafana.
Expand Down Expand Up @@ -41,7 +41,7 @@ Configure it using the following env vars:
- `SPACEAPI_ENDPOINT`
- `RELAY_INTERVAL_SECONDS`

The image is published at [docker.io/spaceapi/influxdb-sensor-logger](https://hub.docker.com/r/spaceapi/influxdb-sensor-logger).
The image is published at [ghcr.io/spaceapi-community/spaceapi-sensor-logger](https://ghcr.io/spaceapi-community/spaceapi-sensor-logger).


## License
Expand All @@ -60,3 +60,6 @@ Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.

[docker-image]: https://ghcr.io/spaceapi-community/spaceapi-sensor-logger
[docker-image-badge]: https://img.shields.io/badge/container%20image-ghcr.io/spaceapi-community/spaceapi-sensor-logger-blue.svg