Skip to content

Commit 00a07fd

Browse files
2 parents fb7fb23 + 81cbfff commit 00a07fd

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/min-CD.yml

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

Comments
 (0)