Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 10f4319

Browse files
committed
updated gitlab ci deployment rules to use git tags
1 parent a6b4056 commit 10f4319

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

awscdk/awscdk/cloudfront.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616

1717

1818
class CloudFrontStack(cloudformation.NestedStack):
19-
def __init__(self, scope: core.Construct, id: str, **kwargs,) -> None:
19+
def __init__(
20+
self,
21+
scope: core.Construct,
22+
id: str,
23+
**kwargs,
24+
) -> None:
2025
super().__init__(scope, id, **kwargs)
2126

2227
s3_domain_prefix = scope.static_site_bucket.bucket_name
@@ -54,7 +59,8 @@ def __init__(self, scope: core.Construct, id: str, **kwargs,) -> None:
5459
),
5560
behaviors=[
5661
cloudfront.Behavior(
57-
is_default_behavior=True, cached_methods=GET_HEAD,
62+
is_default_behavior=True,
63+
cached_methods=GET_HEAD,
5864
)
5965
],
6066
),

gitlab-ci/aws/app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workflow:
22
rules:
3-
- if: $CI_COMMIT_TAG
3+
- if: "$CI_COMMIT_TAG =~ /^v/"
44
when: always
55

66
variables:

gitlab-ci/aws/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workflow:
22
rules:
3-
- if: '$CI_COMMIT_BRANCH == "master"'
3+
- if: "$CI_COMMIT_TAG =~ /^rc/"
44
when: always
55

66
variables:

0 commit comments

Comments
 (0)