This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 10
10
"filename": "VERSION",
11
11
"type": "plain-text"
12
12
}
13
- ]
13
+ ],
14
+ "tagPrefix": ""
14
15
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ phases:
17
17
- export NEW_VERSION=`cat VERSION`
18
18
- export GIT_COMMIT_ID=`git rev-parse HEAD`
19
19
- git push origin HEAD:mainline
20
- - git push origin v $NEW_VERSION
20
+ - git push origin $NEW_VERSION
21
21
22
22
# Determine the artifacts to publish
23
23
- " echo Artifacts to publish to the release target:"
@@ -31,6 +31,6 @@ phases:
31
31
- echo $DPL_FILE_FLAGS
32
32
33
33
# Create a GitHub release for the new version
34
- - dpl --provider=releases --skip-cleanup --api_key=$GITHUB_TOKEN --target_commitish=$GIT_COMMIT_ID --name='img2lambda v $NEW_VERSION' --repo=awslabs/aws-lambda-container-image-converter $DPL_FILE_FLAGS
34
+ - dpl --provider=releases --skip-cleanup --api_key=$GITHUB_TOKEN --target_commitish=$GIT_COMMIT_ID --name='img2lambda $NEW_VERSION' --repo=awslabs/aws-lambda-container-image-converter $DPL_FILE_FLAGS
35
35
finally :
36
36
- rm -f .git/credentials
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ phases:
14
14
commands :
15
15
# Prevent generating a new release if there are no new commits
16
16
- export CURRENT_VERSION=`cat VERSION`
17
- - export COMMITS_TO_RELEASE=`git log --pretty=oneline v $CURRENT_VERSION..HEAD | wc -l`
17
+ - export COMMITS_TO_RELEASE=`git log --pretty=oneline $CURRENT_VERSION..HEAD | wc -l`
18
18
- |-
19
19
if [ $COMMITS_TO_RELEASE -eq 0 ]
20
20
then
@@ -33,12 +33,12 @@ phases:
33
33
- |-
34
34
if echo "$NEW_VERSION" | grep -q "^1\."
35
35
then
36
- echo New version: v $NEW_VERSION
37
- echo Previous version: v $CURRENT_VERSION
36
+ echo New version: $NEW_VERSION
37
+ echo Previous version: $CURRENT_VERSION
38
38
echo Changes to release:
39
- git log --pretty=oneline v $CURRENT_VERSION..v $NEW_VERSION
39
+ git log --pretty=oneline $CURRENT_VERSION..$NEW_VERSION
40
40
else
41
- echo Uh oh, new major version! v $NEW_VERSION
41
+ echo Uh oh, new major version! $NEW_VERSION
42
42
exit 1
43
43
fi
44
44
You can’t perform that action at this time.
0 commit comments