-
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
1 parent
a21e8d6
commit dddb377
Showing
20 changed files
with
170 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[flake8] | ||
per-file-ignores = | ||
# imported but unused | ||
__init__.py: F401 | ||
|
||
max-complexity = 10 | ||
|
||
extend-ignore = E501,C901 |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Controller Container | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'containers/controller/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'containers/controller/**' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: read | ||
actions: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
controller-container: | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-container.yaml@v1.4.2-containers | ||
with: | ||
job-name: controller-container | ||
registry: ${{ vars.HARBOR_REGISTRY }} | ||
registry-user: ${{ vars.HARBOR_USER }} | ||
registry-repo: ${{ vars.HARBOR_PROJECT }}/controller | ||
release-tag-format: 'controller-container-${version}' | ||
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }} | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
build-file: containers/controller/Dockerfile | ||
build-context: containers/controller | ||
secrets: | ||
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }} | ||
cosign-password: ${{ secrets.COSIGN_PASSWORD }} | ||
registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Flake8 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.flake8' | ||
- 'containers/controller/src/**.py' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
flake8: | ||
runs-on: | ||
labels: [self-hosted, linux, x64] | ||
group: light | ||
|
||
steps: | ||
- name: clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: install flake8 | ||
run: pip install flake8 | ||
|
||
- name: install flake8 annotations | ||
uses: rbialon/flake8-annotations@v1 | ||
|
||
- name: run flake8 | ||
run: | | ||
flake8 containers/controller/src |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Guacamole Chart | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'charts/guacamole/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'charts/guacamole/**' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: read | ||
actions: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
guacamole-chart: | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-chart.yaml@v1.2.0-charts | ||
with: | ||
job-name: guacamole-chart | ||
registry: ${{ vars.HARBOR_REGISTRY }} | ||
registry-user: ${{ vars.HARBOR_USER }} | ||
registry-project: ${{ vars.HARBOR_PROJECT }} | ||
registry-repo: guacamole | ||
release-tag-format: 'guacamole-chart-${version}' | ||
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }} | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
chart: charts/guacamole | ||
test-command: | | ||
helm template $CHART --debug | ||
secrets: | ||
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }} | ||
cosign-password: ${{ secrets.COSIGN_PASSWORD }} | ||
registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Guacamole Chart | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'charts/guacamole-crds/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'charts/guacamole-crds/**' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: read | ||
actions: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
guacamole-crds-chart: | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-chart.yaml@v1.2.0-charts | ||
with: | ||
job-name: guacamole-crds-chart | ||
registry: ${{ vars.HARBOR_REGISTRY }} | ||
registry-user: ${{ vars.HARBOR_USER }} | ||
registry-project: ${{ vars.HARBOR_PROJECT }} | ||
registry-repo: guacamole-crds | ||
release-tag-format: 'guacamole-crds-chart-${version}' | ||
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }} | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
chart: charts/guacamole-crds | ||
test-command: | | ||
helm template $CHART --debug | ||
secrets: | ||
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }} | ||
cosign-password: ${{ secrets.COSIGN_PASSWORD }} | ||
registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -33,4 +33,4 @@ def build_url( | |
) | ||
|
||
logging.debug(f"{url=}") | ||
return url | ||
return url |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -17,4 +17,3 @@ def ldap_authenticate_user( | |
client.start_tls() | ||
|
||
return client | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.