-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: cleanup workflows #245
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @gabcoyne @PrefectHQ/platform | ||
* @PrefectHQ/platform |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: "monthly" | ||
interval: weekly |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
name: Lint and Test Prefect Agent Chart | ||
on: | ||
|
||
"on": | ||
pull_request: | ||
paths: | ||
- .github/workflows/agent-lint-and-test.yaml | ||
- .github/linters/agent-ct.yaml | ||
- 'charts/prefect-agent/**' | ||
- charts/prefect-agent/** | ||
|
||
jobs: | ||
lint-test: | ||
lint_test: | ||
name: "lint-test (${{ matrix.kubernetes }})" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -16,25 +18,29 @@ jobs: | |
- "1.26.3" | ||
- "1.27.0" | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.11.2 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (lint) | ||
run: ct lint --config .github/linters/agent-ct.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.20.0 | ||
node_image: "kindest/node:v${{ matrix.kubernetes }}" | ||
|
||
- name: Create API Secret for Agent Chart | ||
run: | | ||
kubectl create ns prefect | ||
kubectl create secret generic prefect-api-key --from-literal=key=${{ secrets.PREFECT_CLOUD_API_KEY }} -n prefect | ||
|
||
- name: Run chart-testing (install) | ||
run: ct install --config .github/linters/agent-ct.yaml --helm-extra-set-args "--set=agent.config.workQueueName=test-helm --set=agent.cloudApiConfig.accountId=${{ secrets.PREFECT_CLOUD_ACCOUNT_ID }} --set=agent.cloudApiConfig.workspaceId=${{ secrets.PREFECT_CLOUD_WORKSPACE_ID }}" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Release Helm Chart | ||
|
||
on: | ||
"on": | ||
push: | ||
tags: | ||
# 2023.9.1, but not 2023.09.01 | ||
|
@@ -41,8 +41,6 @@ jobs: | |
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.9.2 | ||
Comment on lines
-44
to
-45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the only thing im concerned about - should we just default to the latest (stable) helm version here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes I think latest helm3 version |
||
|
||
- name: Prepare GPG key for signing | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
name: Lint and Test Prefect Server Chart | ||
on: | ||
|
||
"on": | ||
pull_request: | ||
paths: | ||
- .github/workflows/server-lint-and-test.yaml | ||
- .github/linters/server-ct.yaml | ||
- 'charts/prefect-server/**' | ||
- charts/prefect-server/** | ||
|
||
jobs: | ||
lint-test: | ||
name: "lint-test (${{ matrix.kubernetes }})" | ||
|
@@ -16,21 +18,24 @@ jobs: | |
- "1.26.3" | ||
- "1.27.0" | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.11.2 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (lint) | ||
run: ct lint --config .github/linters/server-ct.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.20.0 | ||
node_image: "kindest/node:v${{ matrix.kubernetes }}" | ||
|
||
- name: Run chart-testing (install) | ||
run: ct install --config .github/linters/server-ct.yaml --helm-extra-set-args "--set=postgresql.auth.password=TESTING" |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these were managing the version of helm/kind to specify in the lint/test workflows. Since we were always updating to latest, removing this and just allowing the default version to apply.