Skip to content

Commit 1e1089f

Browse files
committed
🪛 Fix: Add trigger to python packaging
1 parent e6011b5 commit 1e1089f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
## [0.1.1] - 2022-05-17
1010

1111
- Disable archive file caching to support idempotency - fix for CI/CD pipelines.
12+
13+
## [0.1.2] - 2023-12-12
14+
15+
- Add trigger to python packaging resource to ensure that the package is rebuilt when the source code changes and fix the initial build.

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ resource "null_resource" "package" {
4444
-r ${local.requirements_path}
4545
EOT
4646
}
47+
48+
triggers = {
49+
# trigger package creation if content hash changes
50+
content = local.content_hash
51+
}
4752
}
4853

4954

0 commit comments

Comments
 (0)