Skip to content

Commit 69fc332

Browse files
authored
Create docker-image.yml for CI
1 parent 2a19be4 commit 69fc332

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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@v2
17+
- name: docker login
18+
env:
19+
DOCKER_USER: ${{secrets.DOCKERHUB_USER}}
20+
DOCKER_PASS: ${{secrets.DOCKERHUB_PASS}}
21+
run: |
22+
docker login -u $DOCKER_USER -p $DOCKER_PASS
23+
- name: Build the Docker image
24+
run: docker build . --file Dockerfile --tag quitotactico/softserve-academy:latest
25+
26+
- name: Docker Push
27+
run: docker push quitotactico/softserve-academy

0 commit comments

Comments
 (0)