We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32f1397 commit 7148188Copy full SHA for 7148188
.github/workflows/docker-ci.yml
@@ -0,0 +1,25 @@
1
+name: Docker Image CI
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
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