Skip to content

Commit aa6b6b9

Browse files
committed
Add --delete-dockerfile to build.py script to not rmtree everytime
1 parent c0af37a commit aa6b6b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.automation/build.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
UPDATE_DEPENDENTS = "--dependents" in sys.argv
4747
UPDATE_CHANGELOG = "--changelog" in sys.argv
4848
IS_LATEST = "--latest" in sys.argv
49+
DELETE_DOCKERFILES = "--delete-dockerfiles" in sys.argv
50+
4951
# Release args management
5052
if RELEASE is True:
5153
RELEASE_TAG = sys.argv[sys.argv.index("--release") + 1]
@@ -556,8 +558,8 @@ def match_flavor(item, flavor, flavor_info):
556558
# Automatically generate Dockerfile for standalone linters
557559
def generate_linter_dockerfiles():
558560
# Remove all the contents of LINTERS_DIR beforehand so that the result is deterministic
559-
shutil.rmtree(os.path.realpath(LINTERS_DIR))
560-
os.makedirs(os.path.realpath(LINTERS_DIR))
561+
if DELETE_DOCKERFILES is True:
562+
shutil.rmtree(os.path.realpath(LINTERS_DIR))
561563
# Browse descriptors
562564
linters_md = "# Standalone linter docker images\n\n"
563565
linters_md += "| Linter key | Docker image | Size |\n"

.github/workflows/deploy-DEV-linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
# Set the Job #
2323
###############
2424
concurrency:
25-
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
25+
group: ${{ github.ref_name }}-${{ github.workflow }}
2626
cancel-in-progress: true
2727

2828
jobs:

build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
33

4-
git config core.filemode false
5-
64
PYTHONPATH=.
75
export PYTHONPATH
86
if type python3 >/dev/null 2>/dev/null; then

0 commit comments

Comments
 (0)