Skip to content

Commit

Permalink
Merge pull request #1671 from opsmill/develop
Browse files Browse the repository at this point in the history
New release - Alpha 3.0 - 0.9.0
  • Loading branch information
pa-lem authored Dec 20, 2023
2 parents baeb591 + 4a310ec commit 3c2af6b
Show file tree
Hide file tree
Showing 598 changed files with 34,523 additions and 14,714 deletions.
10 changes: 8 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
*.pyc
**/*.pyc
*.env
script.py
node_modules
.venv
.ruff_cache
**/.ruff_cache
.mypy_cache
.pytest_cache
*.env

.DS_Store
.coverage
coverage.xml
.git*
.devcontainer
.husky
frontend/node_modules

# Direnv files (https://direnv.net/)
Expand Down
17 changes: 17 additions & 0 deletions .editorconfig
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
16 changes: 16 additions & 0 deletions .github/dependabot.yml
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"
9 changes: 9 additions & 0 deletions .github/file-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ frontend_files: &frontend_files
demo_files: &demo_files
- "models/**"

doc_files: &doc_files
- "docs/**"
- package.json
- package-lock.json

python_all: &python_all
- "**/*.py"

Expand All @@ -43,6 +48,10 @@ backend_all:
- *ci_config
- *development_files

documentation_all:
- *development_files
- *doc_files

sdk_all:
- *sdk_files
- *backend_files
Expand Down
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
description: "The redaction of the issue is still a work in progress"
color: "dcb518"

- name: "state/referenced"
- name: "state/ref"
description: "This issue is referenced in our internal tooling"
color: "c9510c"

Expand Down
2 changes: 1 addition & 1 deletion .github/release-note.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and ad
# - 'patch'
# default: patch
template: |
## Changes
## Changelog
$CHANGES
79 changes: 79 additions & 0 deletions .github/workflows/ci-docker-image.yml
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
Loading

0 comments on commit 3c2af6b

Please sign in to comment.