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

Commit d64fbf8

Browse files
committed
CI pipeline fix
Signed-off-by: tzununbekov <[email protected]>
1 parent 871fabb commit d64fbf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: "Publish Release on GitHub"
3434
command: |
3535
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")
3737
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} /tmp/artifacts
3838
workflows:
3939
version: 2

buildtemplate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
cat <<EOF > Dockerfile
4141
FROM amazonlinux
4242

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" ) \
4444
&& curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/\${LATEST_VERSION}/aws-custom-runtime > /opt/aws-custom-runtime \
4545
&& chmod +x /opt/aws-custom-runtime
4646

0 commit comments

Comments
 (0)