8 Commits

Author SHA1 Message Date
dependabot[bot]
62aa4d4d4e Bump library/gcc from 14.2.0 to 15.1.0 in the docker group (#73) 2025-05-07 09:43:27 +00:00
Pаramtamtām
df2468d8de Update release.yml 2025-03-14 14:02:17 +04:00
dependabot[bot]
53e8111ec3 Bump library/gcc from 13.3.0 to 14.2.0 in the docker group (#69)
Bumps the docker group with 1 update: library/gcc.


Updates `library/gcc` from 13.3.0 to 14.2.0

---
updated-dependencies:
- dependency-name: library/gcc
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: docker
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-10 14:52:36 +04:00
Pаramtamtām
821281d71f ⬆️ chore(docker): Bump 3proxy version to 0.9.5 (#70) 2025-03-10 14:50:20 +04:00
Pаramtamtām
e646bd801e fix(helm): Fix for values that supports templating (#67) 2025-02-03 20:42:08 +04:00
Pаramtamtām
9791f4a007 Update release.yml 2025-02-03 17:50:29 +04:00
Pаramtamtām
29d2351597 dockerfile improving (#66) 2025-02-02 19:30:22 +04:00
Paramtamtam
46cfd03a37 fix the CI 2025-02-02 17:06:10 +04:00
4 changed files with 22 additions and 40 deletions

View File

@@ -43,6 +43,7 @@ jobs:
helm-pack: helm-pack:
name: Pack the Helm chart name: Pack the Helm chart
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build-docker-image]
defaults: {run: {working-directory: ./deployments/helm}} defaults: {run: {working-directory: ./deployments/helm}}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -75,8 +76,7 @@ jobs:
--merge \ --merge \
./helm-charts/index.yaml \ ./helm-charts/index.yaml \
./helm-charts ./helm-charts
- uses: yKicchan/generate-directory-listing-action@v1 - {uses: gacts/directory-listing@v1, with: {overwrite: true}}
with: {target: ., ignore: "**/index.html", override: true}
- name: Commit and push the changes - name: Commit and push the changes
run: | run: |
git config user.name "${{ github.actor }}" git config user.name "${{ github.actor }}"

View File

@@ -24,26 +24,9 @@ jobs:
- {uses: actions/checkout@v4, with: {fetch-depth: 0}} - {uses: actions/checkout@v4, with: {fetch-depth: 0}}
- uses: gacts/gitleaks@v1 - uses: gacts/gitleaks@v1
filter:
name: Filter files
runs-on: ubuntu-latest
permissions: {pull-requests: read}
outputs:
docker: ${{ steps.filter.outputs.docker }}
helm: ${{ steps.filter.outputs.helm }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docker: [Dockerfile, '*docker*', '*3proxy*']
helm: ['deployments/helm/**', '*kube*']
lint-charts: lint-charts:
name: Lint the chart name: Lint the chart
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [filter]
if: needs.filter.outputs.helm == 'true'
defaults: {run: {working-directory: ./deployments/helm}} defaults: {run: {working-directory: ./deployments/helm}}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -55,8 +38,6 @@ jobs:
build-image: build-image:
name: Build the docker image name: Build the docker image
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [filter] # since this is the initial step, we can filter out the rest of the jobs right here to skip them
if: needs.filter.outputs.docker == 'true'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: docker build -f ./Dockerfile --tag 3proxy:local . - run: docker build -f ./Dockerfile --tag 3proxy:local .
@@ -68,7 +49,7 @@ jobs:
retention-days: 1 retention-days: 1
try-to-use: try-to-use:
name: Build and use the docker image (auth ${{ matrix.auth }}) name: Try to use the docker image (auth ${{ matrix.auth }})
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false

View File

@@ -1,9 +1,9 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM gcc:13.3.0 AS builder FROM docker.io/library/gcc:15.1.0 AS builder
# renovate: source=github-tags name=3proxy/3proxy # renovate: source=github-tags name=3proxy/3proxy
ARG Z3PROXY_VERSION=0.9.4 ARG Z3PROXY_VERSION=0.9.5
# Fetch 3proxy sources # Fetch 3proxy sources
RUN set -x \ RUN set -x \
@@ -34,10 +34,11 @@ RUN set -x \
&& strip ./bin/TrafficPlugin.ld.so \ && strip ./bin/TrafficPlugin.ld.so \
&& strip ./bin/PCREPlugin.ld.so \ && strip ./bin/PCREPlugin.ld.so \
&& strip ./bin/TransparentPlugin.ld.so \ && strip ./bin/TransparentPlugin.ld.so \
&& strip ./bin/SSLPlugin.ld.so && strip ./bin/SSLPlugin.ld.so \
&& cp /lib/$(gcc -dumpmachine)/libdl.so.* /tmp/3proxy/
# Prepare filesystem for 3proxy running # Prepare filesystem for 3proxy running
FROM alpine:latest AS buffer FROM docker.io/library/alpine:latest AS buffer
# create a directory for the future root filesystem # create a directory for the future root filesystem
WORKDIR /tmp/rootfs WORKDIR /tmp/rootfs
@@ -53,7 +54,7 @@ RUN set -x \
&& chmod +x ./bin/dumb-init \ && chmod +x ./bin/dumb-init \
&& apk del .build-deps && apk del .build-deps
COPY --from=builder /lib/*-linux-gnu/libdl.so.* ./lib/ COPY --from=builder /tmp/3proxy/libdl.so.* ./lib/
COPY --from=builder /tmp/3proxy/bin/3proxy ./bin/3proxy COPY --from=builder /tmp/3proxy/bin/3proxy ./bin/3proxy
COPY --from=builder /tmp/3proxy/bin/*.ld.so ./usr/local/3proxy/libexec/ COPY --from=builder /tmp/3proxy/bin/*.ld.so ./usr/local/3proxy/libexec/
COPY --from=ghcr.io/tarampampam/mustpl:0.1.1 /bin/mustpl ./bin/mustpl COPY --from=ghcr.io/tarampampam/mustpl:0.1.1 /bin/mustpl ./bin/mustpl
@@ -63,7 +64,7 @@ COPY 3proxy.cfg.mustach ./etc/3proxy/3proxy.cfg.mustach
RUN chown -R 10001:10001 ./etc/3proxy RUN chown -R 10001:10001 ./etc/3proxy
# Merge into a single layer # Merge into a single layer
FROM busybox:stable-glibc FROM docker.io/library/busybox:stable-glibc
LABEL \ LABEL \
org.opencontainers.image.title="3proxy" \ org.opencontainers.image.title="3proxy" \

View File

@@ -72,14 +72,14 @@ spec:
- name: {{ $authLoginEnvName }} - name: {{ $authLoginEnvName }}
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ tpl (toYaml .fromSecret.secretName) $ }}" name: {{ tpl .fromSecret.secretName $ | quote }}
key: "{{ tpl (toYaml .fromSecret.secretKey) $ }}" key: {{ tpl .fromSecret.secretKey $ | quote }}
{{- else if .fromConfigMap.enabled }} {{- else if .fromConfigMap.enabled }}
- name: {{ $authLoginEnvName }} - name: {{ $authLoginEnvName }}
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
name: "{{ tpl (toYaml .fromConfigMap.configMapName) $ }}" name: {{ tpl .fromConfigMap.configMapName $ | quote }}
key: "{{ tpl (toYaml .fromConfigMap.configMapKey) $ }}" key: {{ tpl .fromConfigMap.configMapKey $ | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
@@ -91,14 +91,14 @@ spec:
- name: {{ $authPasswordEnvName }} - name: {{ $authPasswordEnvName }}
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ tpl (toYaml .fromSecret.secretName) $ }}" name: {{ tpl .fromSecret.secretName $ | quote }}
key: "{{ tpl (toYaml .fromSecret.secretKey) $ }}" key: {{ tpl .fromSecret.secretKey $ | quote }}
{{- else if .fromConfigMap.enabled }} {{- else if .fromConfigMap.enabled }}
- name: {{ $authPasswordEnvName }} - name: {{ $authPasswordEnvName }}
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
name: "{{ tpl (toYaml .fromConfigMap.configMapName) $ }}" name: {{ tpl .fromConfigMap.configMapName $ | quote }}
key: "{{ tpl (toYaml .fromConfigMap.configMapKey) $ }}" key: {{ tpl .fromConfigMap.configMapKey $ | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
@@ -112,14 +112,14 @@ spec:
- name: {{ $extraAuthAccountsEnvName }} - name: {{ $extraAuthAccountsEnvName }}
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ tpl (toYaml .fromSecret.secretName) $ }}" name: {{ tpl .fromSecret.secretName $ | quote }}
key: "{{ tpl (toYaml .fromSecret.secretKey) $ }}" key: {{ tpl .fromSecret.secretKey $ | quote }}
{{- else if .fromConfigMap.enabled }} {{- else if .fromConfigMap.enabled }}
- name: {{ $extraAuthAccountsEnvName }} - name: {{ $extraAuthAccountsEnvName }}
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
name: "{{ tpl (toYaml .fromConfigMap.configMapName) $ }}" name: {{ tpl .fromConfigMap.configMapName $ | quote }}
key: "{{ tpl (toYaml .fromConfigMap.configMapKey) $ }}" key: {{ tpl .fromConfigMap.configMapKey $ | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}