up
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Ccopyright (c) AVROID, Ltd., 2024
|
# Cocpyright (c) AVROID, Ltd., 2024
|
||||||
#
|
#
|
||||||
# You can not use the contents of the file in any way without
|
# You can not use the contents of the file in any way without
|
||||||
# AVROID, Ltd. written permission.
|
# AVROID, Ltd. written permission.
|
||||||
@@ -9,5 +9,5 @@
|
|||||||
FROM harbor.avroid.tech/devops/addlicense:1.1.2
|
FROM harbor.avroid.tech/devops/addlicense:1.1.2
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY ./ /src
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
#ENTRYPOINT ["/src/entrypoint.sh"]
|
||||||
|
|||||||
@@ -1,19 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# cCopyright (c) AVROID, Ltd., 2024
|
|
||||||
#
|
|
||||||
# You can not use the contents of the file in any way without
|
|
||||||
# AVROID, Ltd. written permission.
|
|
||||||
#
|
|
||||||
# To obtain such a permit, you should contact AVROID, Ltd.
|
|
||||||
# at https://avroid.ru
|
|
||||||
|
|
||||||
|
|
||||||
echo "Processing event '$GITHUB_EVENT_NAME'"
|
echo "Processing event '$GITHUB_EVENT_NAME'"
|
||||||
echo "List of files with absent license:"
|
echo "List of files with absent license:"
|
||||||
echo "==================================="
|
echo "==================================="
|
||||||
err=0
|
err=0
|
||||||
|
INPUT_INPUT_FILES="$(pwd)/Dockerfile $(pwd)/entrypoint.sh"
|
||||||
echo $INPUT_INPUT_FILES
|
echo $INPUT_INPUT_FILES
|
||||||
for file in $INPUT_INPUT_FILES; do
|
for file in $INPUT_INPUT_FILES; do
|
||||||
echo /app/addlicense -check "$1" $file || err=1 | sh
|
echo /app/addlicense -check "$1" $file | sh
|
||||||
done
|
done
|
||||||
exit $err
|
exit $err
|
||||||
|
|||||||
Reference in New Issue
Block a user