-
-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'inventree:master' into custom-states
- Loading branch information
Showing
710 changed files
with
283,045 additions
and
133,472 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 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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,12 +1,2 @@ | ||
# General owner is the maintainers team | ||
* @SchrodingersGat | ||
|
||
# plugins are co-owned | ||
/InvenTree/plugin/ @SchrodingersGat @matmair | ||
/InvenTree/plugins/ @SchrodingersGat @matmair | ||
|
||
# Installer functions | ||
.pkgr.yml @matmair | ||
Procfile @matmair | ||
runtime.txt @matmair | ||
/contrib/ @matmair |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ name: Backport | |
|
||
on: | ||
pull_request_target: | ||
types: ["labeled", "closed"] | ||
types: [ "labeled", "closed" ] | ||
|
||
jobs: | ||
backport: | ||
|
@@ -22,7 +22,7 @@ jobs: | |
) | ||
steps: | ||
- name: Backport Action | ||
uses: sqren/backport-github-action@v8.9.3 | ||
uses: sqren/backport-github-action@f54e19901f2a57f8b82360f2490d47ee82ec82c6 # [email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
auto_backport_label_prefix: backport-to- | ||
|
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 |
---|---|---|
|
@@ -20,16 +20,39 @@ on: | |
push: | ||
branches: | ||
- 'master' | ||
|
||
# pull_request: | ||
# branches: | ||
# - 'master' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
|
||
paths-filter: | ||
name: Filter | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
docker: ${{ steps.filter.outputs.docker }} | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected] | ||
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # [email protected] | ||
id: filter | ||
with: | ||
filters: | | ||
docker: | ||
- .github/workflows/docker.yaml | ||
- docker/** | ||
- docker-compose.yml | ||
- docker.dev.env | ||
- Dockerfile | ||
- requirements.txt | ||
# Build the docker image | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: paths-filter | ||
if: needs.paths-filter.outputs.docker == 'true' || github.event_name == 'release' || github.event_name == 'push' | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
@@ -39,9 +62,9 @@ jobs: | |
python_version: 3.9 | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1 | ||
- name: Set Up Python ${{ env.python_version }} | ||
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # pin@v4.3.0 | ||
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4.7.1 | ||
with: | ||
python-version: ${{ env.python_version }} | ||
- name: Version Check | ||
|
@@ -60,7 +83,6 @@ jobs: | |
docker-compose run inventree-dev-server invoke update | ||
docker-compose run inventree-dev-server invoke setup-dev | ||
docker-compose up -d | ||
docker-compose run inventree-dev-server pip install setuptools==68.1.2 | ||
docker-compose run inventree-dev-server invoke wait | ||
- name: Check Data Directory | ||
# The following file structure should have been created by the docker image | ||
|
@@ -82,23 +104,23 @@ jobs: | |
docker-compose down | ||
- name: Set up QEMU | ||
if: github.event_name != 'pull_request' | ||
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # pin@v2.1.0 | ||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # pin@v3.0.0 | ||
- name: Set up Docker Buildx | ||
if: github.event_name != 'pull_request' | ||
uses: docker/setup-buildx-action@95cb08cb2672c73d4ffd2f422e6d11953d2a9c70 # pin@v2.1.0 | ||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # pin@v3.0.0 | ||
- name: Set up cosign | ||
if: github.event_name != 'pull_request' | ||
uses: sigstore/cosign-installer@7cc35d7fdbe70d4278a0c96779081e6fac665f88 # pin@v2.8.0 | ||
uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # pin@v3.1.2 | ||
- name: Login to Dockerhub | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # pin@v2.1.0 | ||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # pin@v3.0.0 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Log into registry ghcr.io | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # pin@v2 | ||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # pin@v3.0.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
|
@@ -107,7 +129,7 @@ jobs: | |
- name: Extract Docker metadata | ||
if: github.event_name != 'pull_request' | ||
id: meta | ||
uses: docker/metadata-action@12cce9efe0d49980455aaaca9b071c0befcdd702 # pin@v4.1.0 | ||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # pin@v5.0.0 | ||
with: | ||
images: | | ||
inventree/inventree | ||
|
@@ -116,7 +138,7 @@ jobs: | |
- name: Build and Push | ||
id: build-and-push | ||
if: github.event_name != 'pull_request' | ||
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # pin@v3.2.0 | ||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # pin@v5.0.0 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
|
@@ -133,5 +155,4 @@ jobs: | |
if: ${{ false }} # github.event_name != 'pull_request' | ||
env: | ||
COSIGN_EXPERIMENTAL: "true" | ||
run: cosign sign ${{ steps.meta.outputs.tags }}@${{ | ||
steps.build-and-push.outputs.digest }} | ||
run: cosign sign ${{ steps.meta.outputs.tags }}@${{ steps.build-and-push.outputs.digest }} |
Oops, something went wrong.