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 +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
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
- VERSION=$(git describe --tags `git rev-list --tags --max-count=1` )
36
+ VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print $NF}' | tr -d "\r" )
37
37
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} /tmp/artifacts
38
38
workflows :
39
39
version : 2
Original file line number Diff line number Diff line change 40
40
cat <<EOF > Dockerfile
41
41
FROM amazonlinux
42
42
43
- RUN LATEST_VERSION=$(curl -I https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print $NF}' | tr -d "\r" ) \
43
+ RUN LATEST_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print $NF}' | tr -d "\r" ) \
44
44
&& curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/\${LATEST_VERSION}/aws-custom-runtime > /opt/aws-custom-runtime \
45
45
&& chmod +x /opt/aws-custom-runtime
46
46
You can’t perform that action at this time.
0 commit comments