Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac8c039b33 | ||
|
|
46cc86ed0b | ||
|
|
3db668ff98 | ||
|
|
99661058bd | ||
|
|
575e2fe6ce | ||
|
|
10c5443914 | ||
|
|
058638eb83 |
@@ -7,6 +7,7 @@ stages:
|
||||
- test
|
||||
- build
|
||||
- push_local
|
||||
- release
|
||||
- push_dockerhub
|
||||
|
||||
.docker_base:
|
||||
@@ -50,19 +51,6 @@ push local:
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest
|
||||
- docker push $CI_REGISTRY_IMAGE:latest
|
||||
|
||||
release_job:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- echo 'running release_job'
|
||||
release:
|
||||
name: 'Release $CI_COMMIT_TAG'
|
||||
description: 'Created using the release-cli'
|
||||
tag_name: '$CI_COMMIT_TAG'
|
||||
ref: '$CI_COMMIT_TAG'
|
||||
|
||||
push dockerhub:
|
||||
extends:
|
||||
- .docker_base
|
||||
@@ -75,10 +63,30 @@ push dockerhub:
|
||||
- tags
|
||||
script:
|
||||
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_DOCKERHUB_IMAGE:$CI_COMMIT_REF_NAME $CI_DOCKERHUB_IMAGE:latest
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_DOCKERHUB_IMAGE:$CI_COMMIT_REF_NAME
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_DOCKERHUB_IMAGE:latest
|
||||
- docker login -u "$CI_DOCKERHUB_USER" -p "$CI_DOCKERHUB_PASSWORD" $CI_DOCKERHUB_REGISTRY
|
||||
- docker push $CI_DOCKERHUB_IMAGE:$CI_COMMIT_REF_NAME $CI_DOCKERHUB_IMAGE:latest
|
||||
|
||||
- docker push $CI_DOCKERHUB_IMAGE
|
||||
|
||||
release:
|
||||
image: node:13
|
||||
stage: release
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- alpha
|
||||
# This matches maintenance branches
|
||||
- /^(([0-9]+)\.)?([0-9]+)\.x/
|
||||
# This matches pre-releases
|
||||
- /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/
|
||||
script:
|
||||
- touch CHANGELOG.md
|
||||
- npm install @semantic-release/gitlab @semantic-release/changelog
|
||||
- npx semantic-release
|
||||
artifacts:
|
||||
paths:
|
||||
- CHANGELOG.md
|
||||
|
||||
sast:
|
||||
stage: test
|
||||
include:
|
||||
|
||||
11
.releaserc.yml
Normal file
11
.releaserc.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
plugins:
|
||||
- "@semantic-release/commit-analyzer"
|
||||
- "@semantic-release/release-notes-generator"
|
||||
- - "@semantic-release/changelog"
|
||||
- changelogFile: CHANGELOG.md
|
||||
- "@semantic-release/gitlab"
|
||||
branches:
|
||||
- "master"
|
||||
- "+([0-9])?(.{+([0-9]),x}).x"
|
||||
- name: "alpha"
|
||||
prerelease: "alpha"
|
||||
13
CHANGELOG.md
13
CHANGELOG.md
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.6.10] - 2021-04-06
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix docker tagging issue
|
||||
|
||||
## [1.6.9] - 2021-04-06
|
||||
|
||||
### Fixed
|
||||
|
||||
- Remove release-cli section of CI file
|
||||
- Add updated README.md
|
||||
|
||||
## [1.6.8] - 2021-04-06
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
astral==2.2
|
||||
paho-mqtt==1.5.1
|
||||
bottle==0.12.19
|
||||
defusedxml==0.7.1
|
||||
|
||||
15
README.md
15
README.md
@@ -1,22 +1,11 @@
|
||||
# py-eagle-mqtt
|
||||
Python3 based Docker for Eagle to MQTT reader
|
||||
|
||||
I have only ported this into a dockerfile, All Original code (with one minor modification for XML root tag) is credit to [Ted Drain - TD22057](https://github.com/TD22057/T-Home).
|
||||
I have only ported this into a dockerfile, as well as made some changes to code for security or other purposes. All Original code is credit to [Ted Drain - TD22057](https://github.com/TD22057/T-Home).
|
||||
|
||||
## UPDATES:
|
||||
|
||||
2020-04-03: I've moved the repo to my private Gitlab server, with a mirror set up to github. I did this so that I could easily integrate a CI/CD pipeline to build this image, as well as run some Security tools against the image to improve it's code quality. Please continue to open bug reports/issues/pull requests here in Github. Also swapped to defusedxml python module due to security issues around xmltree. Forgot to incrememnt the build number, but docker container latest is up-to-date.
|
||||
|
||||
2019-07-24: Rebase to python 3.7.4-alpine3.10, update bottle to 0.12.17
|
||||
|
||||
2019-04-12: Rebase to python 3.7.3-alpine3.9
|
||||
|
||||
2019-03-08: Rebase to python 3.7.2-alpine3.9, update bottle and astral versions to latest
|
||||
|
||||
2019-01-03: Rebase to python 3.7.2-alpine3.8, changed logging level to Info (should output to /var/log/tHome/eagle.log)
|
||||
|
||||
2018-09-10: Ported to Python3, Added pricing info. Merged into master branch
|
||||
|
||||
2020-04-06: Moved Updates to a CHANGELOG.md file to clean this up.
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user