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 : database adapter docker image build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' server/**'
9+ - ' .github/workflows/server.yml'
10+
11+ jobs :
12+ docker :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ -
18+ name : Docker meta
19+ id : meta
20+ uses : docker/metadata-action@v5
21+ with :
22+ images : |
23+ icroboticssociety/icrs-server-router
24+ tags : |
25+ type=raw,value=latest
26+ type=sha
27+ -
28+ name : Login to Docker Hub
29+ uses : docker/login-action@v3
30+ with :
31+ username : ${{ vars.DOCKERHUB_USERNAME }}
32+ password : ${{ secrets.DOCKERHUB_TOKEN }}
33+ -
34+ name : Set up QEMU
35+ uses : docker/setup-qemu-action@v3
36+ -
37+ name : Set up Docker Buildx
38+ uses : docker/setup-buildx-action@v3
39+ -
40+ name : Build and push
41+ uses : docker/build-push-action@v6
42+ with :
43+ push : true
44+ context : ./server
45+ tags : ${{ steps.meta.outputs.tags }}
46+ file : ./server/Dockerfile
Original file line number Diff line number Diff line change 1414 spec :
1515 containers :
1616 - name : icrs-access
17- image : localhost:32000 /icrs-access # Replace with your Python Docker image and tag
17+ image : icroboticssociety /icrs-server-router
1818 ports :
19- - containerPort : 8888 # Port your Python application is listening on
19+ - containerPort : 8000 # Port your Python application is listening on
2020 imagePullPolicy : " Always"
2121 volumeMounts :
2222 - name : postgres-ini
You can’t perform that action at this time.
0 commit comments