This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33
33
name : " Publish Release on GitHub"
34
34
command : |
35
35
go get github.com/tcnksm/ghr
36
- # Temporary hardcoded single version
37
- VERSION=0.0.1
38
- # VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
36
+ VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
39
37
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} /tmp/artifacts
40
38
workflows :
41
39
version : 2
@@ -55,4 +53,4 @@ workflows:
55
53
only :
56
54
- master
57
55
tags :
58
- only : /^v\d+\.\d+\.\d+$/
56
+ only : /^v\d+\.\d+\.\d+$/
Original file line number Diff line number Diff line change 40
40
cat <<EOF > Dockerfile
41
41
FROM amazonlinux
42
42
43
- RUN curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/0.0.1/aws-custom-runtime > /opt/aws-custom-runtime \
44
- && chmod +x /opt/aws-custom-runtime
43
+ RUN LATEST_VERSION=$(curl -I https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print $NF}' | tr -d "\r" ) \
44
+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/\${LATEST_VERSION}/aws-custom-runtime > /opt/aws-custom-runtime \
45
+ && chmod +x /opt/aws-custom-runtime
46
+
45
47
ENV LAMBDA_TASK_ROOT "/opt"
46
48
ENV _HANDLER "${HANDLER}"
47
49
You can’t perform that action at this time.
0 commit comments