-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1671 from opsmill/develop
New release - Alpha 3.0 - 0.9.0
- Loading branch information
Showing
598 changed files
with
34,523 additions
and
14,714 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,17 @@ | ||
# https://editorconfig.org | ||
# Top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_size = 2 | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
|
||
[*.py] | ||
indent_size = 4 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,16 @@ | ||
--- | ||
# yamllint disable rule:truthy | ||
version: 2 | ||
|
||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
time: "09:00" | ||
target-branch: develop | ||
labels: | ||
- "type/housekeeping" | ||
- "ci/skip-changelog" |
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
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,79 @@ | ||
--- | ||
# yamllint disable rule:truthy | ||
name: Build And Push Docker image | ||
|
||
# When calling this workflow, ensure you use | ||
# secrets: inherit | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
publish: | ||
type: boolean | ||
description: Wether to publish the image to Infrahub Private Registry | ||
required: false | ||
default: false | ||
version: | ||
type: string | ||
required: false | ||
description: The string to extract semver labels from. | ||
default: '' | ||
ref: | ||
type: string | ||
required: true | ||
desription: The GIT ref from which the image will be build | ||
tags: | ||
type: string | ||
required: true | ||
description: The tags for the docker image | ||
labels: | ||
type: string | ||
required: true | ||
description: The labels for the docker image | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
REGISTRY_IMAGE: "${{ secrets.HARBOR_HOST }}/${{ github.repository }}" | ||
DOCKERFILE: "development/Dockerfile" | ||
PLATFORMS: "linux/amd64,linux/arm64" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
if: ${{ inputs.publish }} | ||
uses: docker/login-action@v3 | ||
id: login | ||
with: | ||
registry: ${{ secrets.HARBOR_HOST }} | ||
username: ${{ secrets.HARBOR_USERNAME }} | ||
password: ${{ secrets.HARBOR_PASSWORD }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
id: push | ||
with: | ||
context: . | ||
file: ${{ env.DOCKERFILE }} | ||
provenance: false # To avoid cross platform "unknown" | ||
push: ${{ inputs.publish }} | ||
platforms: ${{ env.PLATFORMS }} | ||
tags: ${{ inputs.tags }} | ||
labels: ${{ inputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
Oops, something went wrong.