File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : tesk-core-filer
2+
3+ on :
4+ push :
5+ branches : [ 'testing-gh-action' ]
6+ tags : [ '*' ]
7+
8+ workflow_dispatch :
9+ inputs :
10+ profile :
11+ description : Profile name
12+ required : false
13+ default : tesk-core-filler
14+
15+ jobs :
16+ build-from-source :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout elixir-cloud-aai/tesk-core
20+ uses : actions/checkout@v3
21+
22+ - name : Set up QEMU
23+ uses : docker/setup-qemu-action@v2
24+
25+ - name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v2
27+
28+ - name : Login to DockerHub
29+ uses : docker/login-action@v2
30+ with :
31+ username : ${{ secrets.DOCKERHUB_USERNAME }}
32+ password : ${{ secrets.DOCKERHUB_TOKEN }}
33+
34+ - name : Extract metadata (tags, labels) for Docker
35+ id : meta
36+ uses : docker/metadata-action@v4
37+ with :
38+ images : |
39+ elixircloud/${{ github.workflow }}
40+
41+ - name : Build and push Docker images
42+ uses : docker/build-push-action@v3
43+ with :
44+ context : .
45+ push : true
46+ file : ./containers/filer.Dockerfile
47+ tags : ${{ steps.meta.outputs.tags }}
48+ labels : ${{ steps.meta.outputs.labels }}
49+
Original file line number Diff line number Diff line change 1+ name : tesk-core-taskmaster
2+
3+ on :
4+ push :
5+ branches : [ 'testing-gh-action' ]
6+ tags : [ '*' ]
7+
8+ workflow_dispatch :
9+ inputs :
10+ profile :
11+ description : Profile name
12+ required : false
13+ default : tesk-core-taskmaster
14+
15+ jobs :
16+ build-from-source :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout elixir-cloud-aai/tesk-core
20+ uses : actions/checkout@v3
21+
22+ - name : Set up QEMU
23+ uses : docker/setup-qemu-action@v2
24+
25+ - name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v2
27+
28+ - name : Login to DockerHub
29+ uses : docker/login-action@v2
30+ with :
31+ username : ${{ secrets.DOCKERHUB_USERNAME }}
32+ password : ${{ secrets.DOCKERHUB_TOKEN }}
33+
34+ - name : Extract metadata (tags, labels) for Docker
35+ id : meta
36+ uses : docker/metadata-action@v4
37+ with :
38+ images : |
39+ elixircloud/${{ github.workflow }}
40+
41+ - name : Build and push Docker images
42+ uses : docker/build-push-action@v3
43+ with :
44+ context : .
45+ push : true
46+ file : ./containers/taskmaster.Dockerfile
47+ tags : ${{ steps.meta.outputs.tags }}
48+ labels : ${{ steps.meta.outputs.labels }}
49+
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ language: python
33dist : focal
44cache : pip
55python :
6- - ' 3.6'
76- ' 3.7'
87- ' 3.8'
8+ - ' 3.9'
99install :
1010- sudo apt update
1111- sudo apt upgrade
Original file line number Diff line number Diff line change @@ -20,4 +20,6 @@ RUN apk add --no-cache python3
2020COPY --from=builder /app/dist/tesk*.whl /root/
2121RUN python3 -m pip install --disable-pip-version-check --no-cache-dir /root/tesk*.whl
2222
23+ USER 100
24+
2325ENTRYPOINT ["filer" ]
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ RUN apk add --no-cache python3
2020COPY --from=builder /app/dist/tesk*.whl /root/
2121RUN python3 -m pip install --disable-pip-version-check --no-cache-dir /root/tesk*.whl
2222
23- RUN adduser -S taskmaster
24- USER taskmaster
23+ RUN adduser --uid 100 - S taskmaster
24+ USER 100
2525
2626ENTRYPOINT ["taskmaster" ]
You can’t perform that action at this time.
0 commit comments