There was an error while loading. Please reload this page.
2 parents fb7fb23 + 81cbfff commit 00a07fdCopy full SHA for 00a07fd
1 file changed
.github/workflows/min-CD.yml
@@ -0,0 +1,26 @@
1
+name: Mini-CD
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
7
+jobs:
8
+ build-and-push:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
15
+ - name: Login to Docker Hub
16
+ uses: docker/login-action@v3
17
+ with:
18
+ username: ${{ secrets.DOCKER_USERNAME }}
19
+ password: ${{ secrets.DOCKER_PASSWORD }}
20
21
+ - name: Build and Push image
22
+ run: |
23
+ IMAGE="${{ secrets.DOCKER_USERNAME }}/pipelinex:backend-latest"
24
25
+ docker build -t "$IMAGE" .
26
+ docker push "$IMAGE"
0 commit comments