Skip to content

Commit

Permalink
Update 2 files
Browse files Browse the repository at this point in the history
- /Dockerfile.python
- /.gitlab-ci.yml
  • Loading branch information
kartaris committed Nov 28, 2024
1 parent 204d2c8 commit 27c3409
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,17 @@ build-docker:
after_script:
- docker rmi getflow/cloudflared-ssh:docker
- docker logout

build-python:
tags:
- getflow
stage: build
image: docker:latest
before_script:
- echo $DOCKER_HUB_KEY | docker login -u $DOCKER_HUB_USER --password-stdin
script:
- docker build -t getflow/cloudflared-ssh:latest -t getflow/cloudflared-ssh:python -f Dockerfile.python .
- docker push getflow/cloudflared-ssh --all-tags
after_script:
- docker rmi getflow/cloudflared-ssh:latest getflow/cloudflared-ssh:python
- docker logout
14 changes: 14 additions & 0 deletions Dockerfile.python
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3-slim

ENV TOKEN_ID=
ENV TOKEN_SECRET=

RUN apt-get -y update && \
apt-get install -y curl openssh-client git && \
mkdir -p --mode=0755 /usr/share/keyrings && \
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null && \
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared bullseye main' | tee /etc/apt/sources.list.d/cloudflared.list && \
apt-get update && apt-get install cloudflared

COPY ./.ssh_config /root/.ssh/config
RUN chmod 600 /root/.ssh/* && chmod 700 /root/.ssh

0 comments on commit 27c3409

Please sign in to comment.