merging updated roboluke #148
26
.github/workflows/build.yml
vendored
Normal file
26
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
|
- uses: sonarsource/sonarqube-scan-action@master
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
||||||
|
# following lines. This would typically be used to fail a deployment.
|
||||||
|
# - uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
# timeout-minutes: 5
|
||||||
|
# env:
|
||||||
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@ -1,18 +0,0 @@
|
|||||||
name: CI
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
paths-ignore:
|
|
||||||
- 'README.md'
|
|
||||||
- 'LICENSE.md'
|
|
||||||
- '.gitignore'
|
|
||||||
- 'CODEOWNERS'
|
|
||||||
- 'renovate.json'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ci:
|
|
||||||
uses: luketainton/gha-workflows/.github/workflows/ci-python.yml@main
|
|
||||||
secrets:
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
19
.github/workflows/docker.yml
vendored
19
.github/workflows/docker.yml
vendored
@ -1,19 +0,0 @@
|
|||||||
name: Build
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: GitHub Container Registry
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
run: echo ${{ secrets.PAT }} | docker login ghcr.io -u luketainton --password-stdin
|
|
||||||
- name: Build image for GitHub Package Registry
|
|
||||||
run: docker build . --file Dockerfile --tag ghcr.io/luketainton/roboluke-tasks:${{ github.sha }} --tag ghcr.io/luketainton/roboluke-tasks:latest
|
|
||||||
- name: Push image to GitHub Package Registry
|
|
||||||
run: |
|
|
||||||
docker push ghcr.io/luketainton/roboluke-tasks:latest
|
|
||||||
docker push ghcr.io/luketainton/roboluke-tasks:${{ github.sha }}
|
|
@ -1,7 +1,7 @@
|
|||||||
# RoboLuke - Tasks
|
# RoboLuke - Tasks
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
Add tasks to a Wekan to do list via Webex and n8n.
|
Add tasks to a Wekan to do list via Webex and n8n. This fork is adpated for portainer too use the stack.env file generated by portainer when deploying a stack.
|
||||||
|
|
||||||
## How to install
|
## How to install
|
||||||
1. Clone the repository
|
1. Clone the repository
|
||||||
|
@ -103,13 +103,13 @@ class SubmitTaskCommand(Command):
|
|||||||
"sender": self.sender,
|
"sender": self.sender,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Submit(
|
# Submit(
|
||||||
title="My Tasks",
|
# title="My Tasks",
|
||||||
data={
|
# data={
|
||||||
"callback_keyword": "my_tasks_callback_rbamzfyx",
|
# "callback_keyword": "my_tasks_callback_rbamzfyx",
|
||||||
"sender": self.sender,
|
# "sender": self.sender,
|
||||||
},
|
# },
|
||||||
),
|
# ),
|
||||||
Submit(title="Cancel", data={"command_keyword": "exit"}),
|
Submit(title="Cancel", data={"command_keyword": "exit"}),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -2,9 +2,17 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
container_name: robodean_task
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
logging:
|
||||||
...
|
driver: splunk
|
||||||
|
options:
|
||||||
|
splunk-url: https://192.168.10.20:8088
|
||||||
|
splunk-token: aa6c1c61-d015-403a-b200-dd991275790d
|
||||||
|
splunk-insecureskipverify: 'true'
|
||||||
|
tag: "docker/{{.Name}}/{{.ID}}/{{.ImageName}}"
|
||||||
|
env_file: stack.env
|
||||||
|
...
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
sonar.organization=luketainton
|
|
||||||
sonar.projectKey=luketainton_roboluke-tasks
|
|
||||||
sonar.projectName=roboluke-tasks
|
|
||||||
sonar.projectVersion=1.0
|
sonar.projectVersion=1.0
|
||||||
sonar.python.version=3.11
|
sonar.python.version=3.11
|
||||||
sonar.python.coverage.reportPaths=coverage.xml
|
sonar.python.coverage.reportPaths=coverage.xml
|
||||||
@ -8,4 +5,5 @@ sonar.python.pylint.reportPaths=lintreport.txt
|
|||||||
sonar.python.xunit.reportPath=testresults.xml
|
sonar.python.xunit.reportPath=testresults.xml
|
||||||
sonar.sources=app
|
sonar.sources=app
|
||||||
sonar.tests=tests
|
sonar.tests=tests
|
||||||
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,requirements-dev.txt,requirements.txt
|
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,requirements-dev.txt,requirements.txt
|
||||||
|
sonar.projectKey=ds0407_roboluke-tasks-no-env_AYfEqCrD3VurC3K-uCVx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user