Skip to content

Commit f29bbd9

Browse files
cd_pipeline_for_backend_testign_pipelines
cd_pipeline_for_backend_testing_pipelines
2 parents a6f5b34 + 2112f9e commit f29bbd9

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/cd_backend.yml

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

Comments
 (0)