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 1010 "filename": "VERSION",
1111 "type": "plain-text"
1212 }
13- ]
13+ ],
14+ "tagPrefix": ""
1415}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ phases:
1717 - export NEW_VERSION=`cat VERSION`
1818 - export GIT_COMMIT_ID=`git rev-parse HEAD`
1919 - git push origin HEAD:mainline
20- - git push origin v $NEW_VERSION
20+ - git push origin $NEW_VERSION
2121
2222 # Determine the artifacts to publish
2323 - " echo Artifacts to publish to the release target:"
@@ -31,6 +31,6 @@ phases:
3131 - echo $DPL_FILE_FLAGS
3232
3333 # 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
3535 finally :
3636 - rm -f .git/credentials
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ phases:
1414 commands :
1515 # Prevent generating a new release if there are no new commits
1616 - 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`
1818 - |-
1919 if [ $COMMITS_TO_RELEASE -eq 0 ]
2020 then
@@ -33,12 +33,12 @@ phases:
3333 - |-
3434 if echo "$NEW_VERSION" | grep -q "^1\."
3535 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
3838 echo Changes to release:
39- git log --pretty=oneline v $CURRENT_VERSION..v $NEW_VERSION
39+ git log --pretty=oneline $CURRENT_VERSION..$NEW_VERSION
4040 else
41- echo Uh oh, new major version! v $NEW_VERSION
41+ echo Uh oh, new major version! $NEW_VERSION
4242 exit 1
4343 fi
4444
You can’t perform that action at this time.
0 commit comments