Skip to content

Commit 258d45c

Browse files
committed
feat: use our proxycache to avoid dockerhub rate limit
DEVOPS-192
1 parent aabeed4 commit 258d45c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/base-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
IMAGE_NAME: teleservices/teleservices-bookworm-base
1313
DEBIAN_VERSION: bookworm
14+
PROXY_CACHE: ${{ secrets.HARBOR_URL }}/docker-hub/library/
1415
jobs:
1516
base_harbor:
1617
runs-on: gha-runners-teleservices
@@ -43,6 +44,7 @@ jobs:
4344
push: true
4445
build-args: |
4546
DEBIAN_VERSION=${{ env.DEBIAN_VERSION }}
47+
PROXY_CACHE=${{ env.PROXY_CACHE }}
4648
- name : Send notification on Mattermost
4749
run: |
4850
JOB_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"

teleservices/Dockerfile-base

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ARG DEBIAN_VERSION
2-
FROM debian:${DEBIAN_VERSION}
2+
ARG PROXY_CACHE
3+
FROM ${PROXY_CACHE}debian:${DEBIAN_VERSION}
34
ARG DEBIAN_VERSION
45
# Setting ENV variables
56
ENV DEBIAN_FRONTEND=noninteractive \

0 commit comments

Comments
 (0)