Skip to content

Commit 7938eb0

Browse files
committed
add router cicd
1 parent bf25cb9 commit 7938eb0

2 files changed

Lines changed: 48 additions & 2 deletions

File tree

.github/workflows/server.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

server/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ spec:
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

0 commit comments

Comments
 (0)