File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,10 +83,8 @@ RUN apt-get update && \
8383WORKDIR /usr/local/src/watcher
8484RUN --mount=type=secret,id=github-token \
8585 if [ -f /run/secrets/github-token ] && [ -s /run/secrets/github-token ]; then \
86- echo "Using authenticated GitHub API request" ; \
8786 curl -s -H "Authorization: Bearer $(cat /run/secrets/github-token)" https://api.github.com/repos/e-dant/watcher/releases/latest; \
8887 else \
89- echo "Using unauthenticated GitHub API request" ; \
9088 curl -s https://api.github.com/repos/e-dant/watcher/releases/latest; \
9189 fi | \
9290 grep tarball_url | \
Original file line number Diff line number Diff line change @@ -90,10 +90,8 @@ RUN apk add --no-cache --virtual .build-deps \
9090WORKDIR /usr/local/src/watcher
9191RUN --mount=type=secret,id=github-token \
9292 if [ -f /run/secrets/github-token ] && [ -s /run/secrets/github-token ]; then \
93- echo "Using authenticated GitHub API request" ; \
9493 curl -s -H "Authorization: Bearer $(cat /run/secrets/github-token)" https://api.github.com/repos/e-dant/watcher/releases/latest; \
9594 else \
96- echo "Using unauthenticated GitHub API request" ; \
9795 curl -s https://api.github.com/repos/e-dant/watcher/releases/latest; \
9896 fi | \
9997 grep tarball_url | \
You can’t perform that action at this time.
0 commit comments