Skip to content

Commit dbce155

Browse files
author
KingPin
committed
update GitHub Actions workflow to trigger on Go file changes and Docker-related files
1 parent 648cffa commit dbce155

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/docker-image.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,23 @@ name: Docker Image CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
# branches: [ "main" ]
66
tags:
77
- 'v*' # Trigger on any tag starting with 'v'
8+
paths:
9+
- '**.go' # Any Go files
10+
- 'go.mod' # Dependencies
11+
- 'go.sum' # Dependency checksums
12+
- 'Dockerfile' # Docker build instructions
13+
- 'docker/**' # Docker-related files
814
pull_request:
9-
branches: [ "main" ]
15+
# branches: [ "main" ]
16+
paths:
17+
- '**.go'
18+
- 'go.mod'
19+
- 'go.sum'
20+
- 'Dockerfile'
21+
- 'docker/**'
1022
workflow_dispatch:
1123

1224
env:

0 commit comments

Comments
 (0)