-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/PTFE-700-add-build-workflow
- Loading branch information
Showing
43 changed files
with
973 additions
and
74 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
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,33 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: "github-actions" | ||
include: "scope" | ||
labels: | ||
- "github-actions" | ||
- "dependencies" | ||
- package-ecosystem: docker | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: "docker" | ||
include: "scope" | ||
labels: | ||
- "docker" | ||
- "dependencies" | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: "pip" | ||
include: "scope" | ||
labels: | ||
- "pip" | ||
- "dependencies" |
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,24 @@ | ||
--- | ||
name: codeQL | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
analyze: | ||
name: Static analysis with CodeQL | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: python | ||
|
||
- name: Build and analyze | ||
uses: github/codeql-action/analyze@v2 |
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,15 @@ | ||
--- | ||
name: dependency review | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Dependency Review | ||
uses: actions/dependency-review-action@v3 |
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,36 @@ | ||
name: release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: Tag to be released | ||
required: true | ||
prerelease: | ||
description: Define the release as pre-release | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
docker: | ||
uses: scality/workflows/.github/workflows/docker-build.yaml@v1 | ||
with: | ||
name: runner-manager | ||
namespace: scality | ||
tag: ${{ inputs.tag }} | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: docker | ||
steps: | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target_commitish: ${{ github.sha }} | ||
tag_name: ${{ inputs.tag }} | ||
name: Release ${{ inputs.tag }} | ||
prerelease: ${{ inputs.prerelease }} | ||
generate_release_notes: true |
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,46 @@ | ||
--- | ||
name: test-deployment | ||
|
||
|
||
on: pull_request | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
docker-build: | ||
permissions: | ||
contents: read | ||
packages: write | ||
uses: scality/workflows/.github/workflows/docker-build.yaml@v1 | ||
with: | ||
name: runner-manager | ||
namespace: scality | ||
test-deployment: | ||
needs: docker-build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: helm/kind-action@v1 | ||
- name: Edit the runner-manager image | ||
working-directory: tests | ||
run: | | ||
cat <<EOF > kustomization.yaml | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
images: | ||
- name: ghcr.io/scality/runner-manager | ||
newTag: ${{ github.sha }} | ||
resources: | ||
- ../manifests | ||
EOF | ||
- name: Deploy runner-manager | ||
run: kustomize build tests/ | kubectl apply -f - | ||
- name: Check if deployment is ready | ||
run: | | ||
kubectl rollout status statefulset redis --timeout=90s | ||
kubectl rollout status deployment runner-manager --timeout=120s | ||
kubectl rollout status deployment runner-manager-worker --timeout=120s | ||
- name: get all resources | ||
if: failure() | ||
run: kubectl get all |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,5 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Trunk Check | ||
uses: trunk-io/trunk-action@v1 |
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 |
---|---|---|
|
@@ -20,18 +20,12 @@ lint: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
disabled: | ||
- checkov | ||
- bandit | ||
- osv-scanner | ||
- trivy | ||
- terrascan | ||
triggers: | ||
- linters: [checkov] | ||
paths: | ||
- .github/workflows | ||
targets: | ||
- .github/workflows | ||
runtimes: | ||
enabled: | ||
- [email protected] | ||
|
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
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,7 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- runner-manager | ||
- redis |
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,17 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
|
||
commonLabels: | ||
app.kubernetes.io/instance: redis | ||
app.kubernetes.io/name: redis | ||
app.kubernetes.io/component: database | ||
app.kubernetes.io/part-of: runner-manager | ||
images: | ||
- name: redis | ||
newName: redis/redis-stack | ||
newTag: 6.2.6-v9 | ||
resources: | ||
- statefulset.yaml | ||
- service.yaml |
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,11 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: redis | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- protocol: TCP | ||
port: 6379 | ||
targetPort: 6379 |
Oops, something went wrong.