Skip to content

Commit d89b40c

Browse files
committed
Optimize docker workflow
1 parent fe7799d commit d89b40c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/docker.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ on:
1010
pull_request:
1111
paths:
1212
- ".github/workflows/docker.yml"
13-
- "tools/config_editor/**"
14-
- "tools/docker/**"
15-
- "!**.md"
13+
- "tools/config_editor/requirements.txt"
14+
- "tools/docker/Dockerfile"
15+
- "tools/docker/entrypoint.sh"
1616

1717
env:
1818
# Build the image for amd64 and arm64
@@ -23,7 +23,7 @@ jobs:
2323
docker:
2424
# Disable the job in forks
2525
if: ${{ github.event_name == 'pull_request' || github.repository_owner == 'espressif' }}
26-
26+
name: Build and push if needed
2727
runs-on: ubuntu-latest
2828
steps:
2929
# Depending on the branch/tag, set CLONE_BRANCH_OR_TAG variable (used in the Dockerfile
@@ -62,7 +62,6 @@ jobs:
6262
- name: Check variables
6363
run: |
6464
echo "CLONE_BRANCH_OR_TAG: $CLONE_BRANCH_OR_TAG"
65-
echo "CHECKOUT_REF: $CHECKOUT_REF"
6665
echo "TAG_NAME: $TAG_NAME"
6766
echo "URL: $URL"
6867

0 commit comments

Comments
 (0)