File tree Expand file tree Collapse file tree 3 files changed +55
-11
lines changed
Expand file tree Collapse file tree 3 files changed +55
-11
lines changed Original file line number Diff line number Diff line change 1+ name : Push OpenSIPS Python Images in Docker Hub
2+
3+ on :
4+ push :
5+ repository_dispatch :
6+ workflow_dispatch :
7+
8+ jobs :
9+
10+ build :
11+
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - name : Log in to Docker Hub
18+ uses : docker/login-action@v2.1.0
19+ with :
20+ username : ${{ secrets.DOCKER_USERNAME }}
21+ password : ${{ secrets.DOCKER_TOKEN }}
22+
23+ - name : Build and push Docker image
24+ uses : docker/build-push-action@v4
25+ with :
26+ context : .
27+ push : true
28+ tags : opensips/python-opensips:latest
Original file line number Diff line number Diff line change 1+ ---
2+ name : Update Docker Hub Description
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - docker/docker.md
9+ - .github/workflows/docker-readme.yml
10+
11+ jobs :
12+ dockerHubDescription :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+
18+ - name : Docker Hub Description
19+ uses : peter-evans/dockerhub-description@v4
20+ with :
21+ username : ${{ secrets.DOCKER_USERNAME }}
22+ password : ${{ secrets.DOCKER_TOKEN }}
23+ repository : opensips/python-opensips
24+ readme-filepath : ./docker/docker.md
25+ short-description : ${{ github.event.repository.description }}
26+ enable-url-completion : true
Original file line number Diff line number Diff line change 11FROM python:3.9-slim-buster
22LABEL maintainer="Darius Stefan <darius.stefan@opensips.org>"
33
4- RUN apt-get -y update -qq && \
5- apt-get -y install git
6-
7- RUN git clone https://github.com/OpenSIPS/python-opensips.git /usr/src/python-opensips && \
8- cd /usr/src/python-opensips && \
9- python3 setup.py install &&\
10- cd / && rm -rf /usr/src/python-opensips
11-
12- RUN apt-get purge -y git && \
13- apt-get autoremove -y && \
14- apt-get clean
4+ RUN pip install opensips
155
166ADD "run.sh" "/run.sh"
177
You can’t perform that action at this time.
0 commit comments