Add docker.yml and Update ci.yml
Browse files
.github/workflows/ci.yml
CHANGED
@@ -3,7 +3,7 @@ name: CI/CD Pipeline
|
|
3 |
on:
|
4 |
push:
|
5 |
branches:
|
6 |
-
-
|
7 |
- develop
|
8 |
- feature/ci-setup
|
9 |
|
|
|
3 |
on:
|
4 |
push:
|
5 |
branches:
|
6 |
+
- main
|
7 |
- develop
|
8 |
- feature/ci-setup
|
9 |
|
.github/workflows/docker-build.yml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Docker Build and Push
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
build-and-push:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
|
12 |
+
steps:
|
13 |
+
- name: Checkout Repository
|
14 |
+
uses: actions/checkout@v3
|
15 |
+
|
16 |
+
- name: Set up Docker Buildx
|
17 |
+
uses: docker/setup-buildx-action@v2
|
18 |
+
|
19 |
+
- name: Log in to Docker Hub
|
20 |
+
uses: docker/login-action@v2
|
21 |
+
with:
|
22 |
+
username: ${{ secrets.DOCKER_USERNAME }}
|
23 |
+
password: ${{ secrets.DOCKER_PASSWORD }}
|
24 |
+
|
25 |
+
- name: Build and Push Docker Image
|
26 |
+
uses: docker/build-push-action@v4
|
27 |
+
with:
|
28 |
+
context: .
|
29 |
+
push: true
|
30 |
+
tags: kohlin/nlp-spacy:latest
|