forked from PeterDaveHello/docker-azcopy
-
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
136 additions
and
84 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 @@ | ||
.git* |
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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,85 @@ | ||
name: ci | ||
|
||
concurrency: | ||
cancel-in-progress: ${{ ! (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) }} | ||
group: ci-${{ github.ref_name }}-${{ github.event_name }} | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- $default-branch | ||
push: | ||
branches: | ||
- $default-branch | ||
tags: | ||
- "v*" | ||
schedule: | ||
- cron: 30 0 */1 * * | ||
workflow_dispatch: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build-pr: | ||
if: github.event_name == 'pull_request' | ||
permissions: | ||
contents: read | ||
packages: write | ||
uses: licenseware/infrastructure/.github/workflows/build-docker.yml@v2 | ||
with: | ||
context: . | ||
image-name: ghcr.io/${{ github.repository }} | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
scout-cves: true | ||
scout-compare: true | ||
scout-comment-pr: true | ||
secrets: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
build-edge: | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
permissions: | ||
contents: read | ||
packages: write | ||
uses: licenseware/infrastructure/.github/workflows/build-docker.yml@v2 | ||
with: | ||
context: . | ||
image-name: ghcr.io/${{ github.repository }} | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
scout-cves: true | ||
scout-compare: false | ||
scout-comment-pr: false | ||
secrets: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
checks: | ||
if: contains(fromJSON('["push", "pull_request", "schedule"]'), github.event_name) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Run linters | ||
run: | | ||
pip install -U pip pre-commit | ||
pre-commit run -a | ||
- if: failure() && github.ref_name != 'refs/heads/main' | ||
name: Commit linting changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: "chore: lint 🚨" | ||
new_branch: ${{ github.head_ref || github.ref_name }} | ||
- name: Install mypy | ||
run: | | ||
pip install -U pip 'mypy<2' | ||
- name: Run mypy | ||
run: | | ||
echo -e "# mypy output\n\n" >> $GITHUB_STEP_SUMMARY | ||
echo -e "<details><summary>Expand</summary>\n\n\`\`\`bash" >> $GITHUB_STEP_SUMMARY | ||
mypy | tee -a $GITHUB_STEP_SUMMARY | ||
echo -e "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
echo -e "</details>\n\n" >> $GITHUB_STEP_SUMMARY |
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 @@ | ||
secrets |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-added-large-files | ||
args: ['--maxkb=600'] | ||
- id: check-ast | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-shebang-scripts-are-executable | ||
exclude: .*templates/.*j2$ | ||
- id: check-yaml | ||
args: | ||
- --allow-multiple-documents | ||
- id: detect-private-key | ||
- id: detect-aws-credentials | ||
- id: end-of-file-fixer | ||
- id: name-tests-test | ||
- id: file-contents-sorter | ||
- id: requirements-txt-fixer | ||
- id: sort-simple-yaml | ||
- id: trailing-whitespace | ||
- repo: https://github.com/dnephin/pre-commit-golang | ||
rev: v0.5.1 | ||
hooks: | ||
- id: go-fmt | ||
- id: go-imports | ||
- id: no-go-testing | ||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | ||
rev: v9.11.0 | ||
hooks: | ||
- id: commitlint | ||
stages: [commit-msg] | ||
additional_dependencies: ["@commitlint/config-conventional"] |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.