File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout repo
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Log in to Docker Hub
20
+ uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
21
+ with :
22
+ username : ${{ secrets.DOCKER_USERNAME }}
23
+ password : ${{ secrets.DOCKER_PASSWORD }}
24
+
25
+ - name : Extract metadata for Docker
26
+ id : meta
27
+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
28
+ with :
29
+ images : pteich/caddy-tlsconsul
30
+
31
+ - name : Build and push Docker image
32
+ uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
33
+ with :
34
+ context : .
35
+ push : true
36
+ tags : ${{ steps.meta.outputs.tags }}
37
+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments