Compare commits

..

6 Commits

Author SHA1 Message Date
Evan Richardson
46cc86ed0b revert: add astral back in due to mistake in release system 2021-04-07 15:08:19 -07:00
Evan Richardson
3db668ff98 feat: remove astral package, since it actually isn't being used 2021-04-07 15:00:27 -07:00
evanrich
99661058bd Add Semver release mechanism 2021-04-06 20:59:01 -07:00
evanrich
575e2fe6ce Fix tagging issue 2021-04-06 15:31:09 -07:00
evanrich
10c5443914 Fix dockerhub push issue 2021-04-06 15:30:14 -07:00
evanrich
058638eb83 Add README
update CHANGELOG
remove extra section of CI file
2021-04-06 15:21:31 -07:00
4 changed files with 50 additions and 29 deletions

View File

@@ -7,6 +7,7 @@ stages:
- test - test
- build - build
- push_local - push_local
- release
- push_dockerhub - push_dockerhub
.docker_base: .docker_base:
@@ -50,19 +51,6 @@ push local:
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest
- docker push $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: push dockerhub:
extends: extends:
- .docker_base - .docker_base
@@ -75,9 +63,29 @@ push dockerhub:
- tags - tags
script: script:
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - 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 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: sast:
stage: test stage: test

11
.releaserc.yml Normal file
View 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"

View File

@@ -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/), 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). 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 ## [1.6.8] - 2021-04-06
### Changed ### Changed

View File

@@ -1,22 +1,11 @@
# py-eagle-mqtt # py-eagle-mqtt
Python3 based Docker for Eagle to MQTT reader 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: ## 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. 2020-04-06: Moved Updates to a CHANGELOG.md file to clean this up.
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
## Usage ## Usage