2 parents a6f5b34 + 2112f9e commit f29bbd9Copy full SHA for f29bbd9
1 file changed
.github/workflows/cd_backend.yml
@@ -0,0 +1,31 @@
1
+## build the docker image
2
+name: Deploy the backend
3
+
4
+on:
5
+ push:
6
+ branches: [dev]
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout the code
14
+ uses: actions/checkout@v3
15
16
+ - name: Login to Docker Hub
17
+ uses: docker/login-action@v2
18
+ with:
19
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
20
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
21
22
+ - name: Build and push
23
+ uses: docker/build-push-action@v4
24
25
+ context: .
26
+ file: ./apps/http-server/Dockerfile
27
+ push: true
28
+ tags: codeheist/rexial-http-server:${{ github.sha }}
29
30
31
+## SSH into our VM and start the new image
0 commit comments