Skip to content

Commit 50e8f7d

Browse files
authored
add User-Agent env var (#150)
* add UA env var * add wdqs image version * update cache action version * typo * use github repo url
1 parent 5c0f82c commit 50e8f7d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/docker.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: docker/setup-buildx-action@v3.3.0
3030
-
3131
name: Cache Docker layers
32-
uses: actions/cache@v4.0.2
32+
uses: actions/cache@v4
3333
with:
3434
path: /tmp/.buildx-cache
3535
key: ${{ runner.os }}-buildx-${{ github.sha }}

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
FROM wikibase/wdqs:0.3.135-wmde.13
1+
ARG VERSION=0.3.135-wmde.13
2+
FROM wikibase/wdqs:$VERSION
3+
ARG VERSION
24

35
LABEL org.opencontainers.image.source="https://github.com/wbstack/queryservice"
46

7+
ENV USER_AGENT="Wikibase.Cloud Query Service ($VERSION); https://github.com/wbstack/queryservice"
8+
59
COPY ./entrypoint.sh /entrypoint.sh
610
RUN chmod +x /entrypoint.sh
711

0 commit comments

Comments
 (0)