generated from jiuka/checkmk_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
313 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
name: build-release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- '!v*[a-z]' | ||
|
||
jobs: | ||
build-release: | ||
name: Build Release Package | ||
runs-on: ubuntu-latest | ||
container: | ||
image: checkmk/check-mk-raw:2.1.0-latest | ||
|
||
env: | ||
OMD_ROOT: /omd/sites/cmk | ||
OMD_SITE: cmk | ||
CMK_SITE_ID: cmk | ||
WORKSPACE: ${{ github.workspace }} | ||
|
||
steps: | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v2 | ||
- name: Setup links | ||
run: .devcontainer/symlink.sh | ||
- name: Update GITHUB_PATH | ||
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH | ||
- name: Build Extension | ||
run: .devcontainer/build.sh | ||
id: cmkpkg | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./${{ steps.cmkpkg.outputs.pkgfile }} | ||
asset_name: ${{ steps.cmkpkg.outputs.pkgfile }} | ||
name: build-release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- '!v*[a-z]' | ||
|
||
jobs: | ||
build-release: | ||
name: Build Release Package | ||
runs-on: ubuntu-latest | ||
container: | ||
image: checkmk/check-mk-raw:2.2.0-latest | ||
|
||
env: | ||
OMD_ROOT: /omd/sites/cmk | ||
OMD_SITE: cmk | ||
CMK_SITE_ID: cmk | ||
WORKSPACE: ${{ github.workspace }} | ||
|
||
steps: | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v2 | ||
- name: Setup links | ||
run: .devcontainer/symlink.sh | ||
- name: Update GITHUB_PATH | ||
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH | ||
- name: Build Extension | ||
run: .devcontainer/build.sh | ||
id: cmkpkg | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./${{ steps.cmkpkg.outputs.pkgfile }} | ||
asset_name: ${{ steps.cmkpkg.outputs.pkgfile }} | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build Checkmk package | ||
runs-on: ubuntu-latest | ||
container: | ||
image: checkmk/check-mk-raw:2.1.0-latest | ||
|
||
env: | ||
OMD_ROOT: /omd/sites/cmk | ||
OMD_SITE: cmk | ||
CMK_SITE_ID: cmk | ||
WORKSPACE: ${{ github.workspace }} | ||
|
||
steps: | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v2 | ||
- name: Setup links | ||
run: .devcontainer/symlink.sh | ||
- name: Update GITHUB_PATH | ||
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH | ||
- name: Build Extension | ||
run: .devcontainer/build.sh | ||
id: cmkpkg | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ steps.cmkpkg.outputs.pkgfile }} | ||
path: ${{ steps.cmkpkg.outputs.pkgfile }} | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build Checkmk package | ||
runs-on: ubuntu-latest | ||
container: | ||
image: checkmk/check-mk-raw:2.1.0-latest | ||
|
||
env: | ||
OMD_ROOT: /omd/sites/cmk | ||
OMD_SITE: cmk | ||
CMK_SITE_ID: cmk | ||
WORKSPACE: ${{ github.workspace }} | ||
|
||
steps: | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v2 | ||
- name: Setup links | ||
run: .devcontainer/symlink.sh | ||
- name: Update GITHUB_PATH | ||
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH | ||
- name: Build Extension | ||
run: .devcontainer/build.sh | ||
id: cmkpkg | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ steps.cmkpkg.outputs.pkgfile }} | ||
path: ${{ steps.cmkpkg.outputs.pkgfile }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**.py' | ||
|
||
jobs: | ||
flake8_py3: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install flake8 | ||
run: pip install flake8 | ||
- name: Run flake8 | ||
uses: suo/flake8-github-action@releases/v1 | ||
with: | ||
checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
name: Lint | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**.py' | ||
|
||
jobs: | ||
flake8_py3: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install flake8 | ||
run: pip install flake8 | ||
- name: Run flake8 | ||
uses: suo/flake8-github-action@releases/v1 | ||
with: | ||
checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
name: pytest | ||
|
||
on: | ||
push: [] | ||
|
||
jobs: | ||
pytest: | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: checkmk/check-mk-raw:2.1.0-latest | ||
|
||
env: | ||
OMD_ROOT: /omd/sites/cmk | ||
OMD_SITE: cmk | ||
CMK_SITE_ID: cmk | ||
WORKSPACE: ${{ github.workspace }} | ||
|
||
steps: | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v2 | ||
- name: Setup links | ||
run: ./.devcontainer/symlink.sh | ||
- name: Install pytest | ||
run: su -l -c "REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt pip3 install -r $GITHUB_WORKSPACE/.devcontainer/requirements.txt" cmk | ||
- name: Update GITHUB_PATH | ||
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH | ||
- name: Run pytest | ||
name: pytest | ||
|
||
on: | ||
push: [] | ||
|
||
jobs: | ||
pytest: | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: checkmk/check-mk-raw:2.1.0-latest | ||
|
||
env: | ||
OMD_ROOT: /omd/sites/cmk | ||
OMD_SITE: cmk | ||
CMK_SITE_ID: cmk | ||
WORKSPACE: ${{ github.workspace }} | ||
|
||
steps: | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v2 | ||
- name: Setup links | ||
run: ./.devcontainer/symlink.sh | ||
- name: Install pytest | ||
run: su -l -c "REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt pip3 install -r $GITHUB_WORKSPACE/.devcontainer/requirements.txt" cmk | ||
- name: Update GITHUB_PATH | ||
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH | ||
- name: Run pytest | ||
run: python3 -m pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.mkp | ||
.coverage | ||
__pycache__ | ||
debug.log | ||
*.mkp | ||
.coverage | ||
__pycache__ | ||
debug.log | ||
.flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"python.pythonPath": "/omd/sites/cmk/bin/python3", | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.enabled": true, | ||
"python.testing.pytestArgs": [ | ||
"." | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
{ | ||
"python.pythonPath": "/omd/sites/cmk/bin/python3", | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.enabled": true, | ||
"python.testing.pytestArgs": [ | ||
"." | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
Oops, something went wrong.