This commit is contained in:
commit
b002596444
26
.drone.yml
Normal file
26
.drone.yml
Normal 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
5
Dockerfile
Normal 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
33
deployment.yaml
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user