Skip to content

Commit 7148188

Browse files
committed
added pipeline
1 parent 32f1397 commit 7148188

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docker-ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Build the Docker image
18+
run: docker build . --file Dockerfile --tag git.local.skill17.com/${{ github.repository }}
19+
- name: docker login
20+
env:
21+
USER: ${{ secrets.USER }}
22+
PASS: ${{ secrets.PASS }}
23+
run: docker login -u $USER -p $PASS git.local.skill17.com
24+
- name: push to docker hub
25+
run: docker push git.local.skill17.com/${{ github.repository }}

0 commit comments

Comments
 (0)