init tinyproxy
Some checks reported errors
continuous-integration/drone Build was killed

This commit is contained in:
Jakub K 2024-02-01 22:03:53 +01:00
commit b002596444
3 changed files with 64 additions and 0 deletions

26
.drone.yml Normal file
View File

@ -0,0 +1,26 @@
kind: pipeline
type: exec
name: default
steps:
- name: build
commands:
- docker build --no-cache -t tinyproxy:latest .
- docker tag tinyproxy:latest registry.izaac.pl:5000/tinyproxy:latest
- docker push registry.izaac.pl:5000/tinyproxy:latest
- name: delete
environment:
KUBECONFIG: /home/drone-runner/drone-kubeconfig
commands:
- kubectl delete deployment tinyproxy || true
- name: deploy
environment:
KUBECONFIG: /home/drone-runner/drone-kubeconfig
commands:
- kubectl apply -f deployment.yml --insecure-skip-tls-verify
trigger:
branch:
- master

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM alpine:latest
RUN apk --no-cache add tinyproxy
# COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf
EXPOSE 8888
CMD ["tinyproxy", "-d"]

33
deployment.yaml Normal file
View File

@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: tinyproxy
labels:
app: tinyproxy
spec:
replicas: 1
selector:
matchLabels:
app: tinyproxy
template:
metadata:
labels:
app: tinyproxy
spec:
containers:
- name: tinyproxy
image: registry.izaac.pl:5000/tinyproxy:latest
ports:
- containerPort: 8888
---
apiVersion: v1
kind: Service
metadata:
name: tinyproxy-svc
spec:
selector:
app: tinyproxy
ports:
- protocol: TCP
port: 8888
targetPort: 8888