File tree 3 files changed +58
-11
lines changed
3 files changed +58
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Deploy
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ release :
8
+ types :
9
+ - published
10
+
11
+ jobs :
12
+ docker :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Set up Docker Buildx
16
+ uses : docker/setup-buildx-action@v3
17
+ - name : Login to DockerHub
18
+ uses : docker/login-action@v3
19
+ with :
20
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
21
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
22
+ - name : Login to GitHub Container Registry
23
+ uses : docker/login-action@v3
24
+ with :
25
+ registry : ghcr.io
26
+ username : ${{ github.repository_owner }}
27
+ password : ${{ secrets.GITHUB_TOKEN }}
28
+ - name : Build and push
29
+ uses : docker/build-push-action@v5
30
+ with :
31
+ push : true
32
+ platforms : linux/amd64,linux/arm64
33
+ tags : |
34
+ tiangolo/issue-manager:latest
35
+ ghcr.io/tiangolo/issue-manager:latest
36
+ file : base.dockerfile
37
+ - name : Build and push tag
38
+ if : github.event_name == 'release'
39
+ uses : docker/build-push-action@v5
40
+ with :
41
+ push : true
42
+ platforms : linux/amd64,linux/arm64
43
+ tags : |
44
+ tiangolo/issue-manager:${{ github.event.release.tag_name }}
45
+ ghcr.io/tiangolo/issue-manager:${{ github.event.release.tag_name }}
46
+ file : base.dockerfile
Original file line number Diff line number Diff line change 1
- FROM python:3.10
2
-
3
- COPY ./requirements.txt /code/requirements.txt
4
-
5
- RUN pip install -r /code/requirements.txt
6
-
7
- COPY ./app /code/app
8
-
9
- ENV PYTHONPATH=/code/app
10
-
11
- CMD ["python" , "/code/app/main.py" ]
1
+ FROM tiangolo/issue-manager:0.5.0
Original file line number Diff line number Diff line change
1
+ FROM python:3.10-slim
2
+
3
+ COPY ./requirements.txt /code/requirements.txt
4
+
5
+ RUN pip install -r /code/requirements.txt
6
+
7
+ COPY ./app /code/app
8
+
9
+ ENV PYTHONPATH=/code/app
10
+
11
+ CMD ["python" , "/code/app/main.py" ]
You can’t perform that action at this time.
0 commit comments