1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2025-08-17 16:17:30 +00:00

1 Commits

Author SHA1 Message Date
750d725031 fix ci branches
(cherry picked from commit e7d7016018)

# Conflicts:
#	.github/workflows/dockerimage.yml

[skip ci]
2023-07-06 16:21:36 +03:00
2 changed files with 11 additions and 11 deletions
.github/workflows
Dockerfile

@@ -4,7 +4,7 @@ on:
push:
# Publish `master` as Docker `latest` image.
branches:
- master
- master
- v5
# Publish `v1.2.3` tags as releases.
@@ -23,7 +23,7 @@ jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
@@ -39,7 +39,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Cache Docker layers
uses: actions/cache@v3.3.2
uses: actions/cache@v3.3.1
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -77,7 +77,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Docker meta
id: meta
@@ -128,7 +128,7 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3.3.2
uses: actions/cache@v3.3.1
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}

@@ -1,6 +1,6 @@
FROM alpine:3.18.3 as build
FROM alpine:3.17.3 as build
ARG SQUID_VER=6.3
ARG SQUID_VER=5.9
RUN set -x && \
apk add --no-cache \
@@ -58,7 +58,7 @@ RUN set -x && \
--disable-arch-native \
--enable-removal-policies="lru,heap" \
--enable-auth-digest \
--enable-auth-basic="getpwnam,NCSA,DB,RADIUS" \
--enable-auth-basic="getpwnam,NCSA,DB" \
--enable-basic-auth-helpers="DB" \
--enable-epoll \
--enable-external-acl-helpers="file_userip,unix_group,wbinfo_group" \
@@ -86,7 +86,7 @@ RUN set -x && \
--enable-storeio="diskd rock" \
--enable-ipv6 \
--enable-translation \
--enable-snmp \
--disable-snmp \
--disable-dependency-tracking \
--with-large-files \
--with-default-user=squid \
@@ -106,7 +106,7 @@ RUN sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf && \
# --- --- --- --- --- --- --- --- ---
FROM alpine:3.18.3
FROM alpine:3.17.3
ENV SQUID_CONFIG_FILE /etc/squid/squid.conf
ENV TZ Europe/Moscow
@@ -148,4 +148,4 @@ EXPOSE 3128/tcp
USER squid
CMD ["sh", "-c", "rm -f /var/run/squid/squid.pid ; /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]
CMD ["sh", "-c", "/usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]