File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and push Docker image to dockerhub
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Check out the repo
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Get variables
16
+ id : vars
17
+ run : |
18
+ echo "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
19
+ echo "vcs_ref=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
20
+
21
+ - name : Login to dockerhub
22
+ uses : docker/login-action@v3
23
+ with :
24
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
25
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
26
+
27
+ - name : Build Alpine and push to dockerhub
28
+ uses : docker/build-push-action@v6
29
+ with :
30
+ context : ./openluup-alpine
31
+ push : true
32
+ build-args : |
33
+ BUILD_DATE=${{ steps.vars.outputs.build_date }}
34
+ VCS_REF=${{ steps.vars.outputs.vcs_ref }}
35
+ tags : |
36
+ vwout/openluup:alpine
37
+
38
+ - name : Build Debian and push to dockerhub
39
+ uses : docker/build-push-action@v6
40
+ with :
41
+ context : ./openluup-debian
42
+ push : true
43
+ build-args : |
44
+ BUILD_DATE=${{ steps.vars.outputs.build_date }}
45
+ VCS_REF=${{ steps.vars.outputs.vcs_ref }}
46
+ tags : |
47
+ vwout/openluup:latest
48
+ vwout/openluup:slim
49
+ vwout/openluup:bookworm-slim
You can’t perform that action at this time.
0 commit comments