File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
+ - refs/tags/*
7
8
pull_request :
8
9
branches :
9
10
- master
49
50
with :
50
51
name : build-artifacts
51
52
path : build/libs/*.jar
53
+
54
+ docker :
55
+ runs-on : ubuntu-latest
56
+ if : github.event.action == 'push' && github.event.ref_type == 'tag'
57
+ steps :
58
+ -
59
+ name : Login to Docker Hub
60
+ uses : docker/login-action@v3
61
+ with :
62
+ username : ${{ vars.DOCKERHUB_USERNAME }}
63
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
64
+ -
65
+ name : Set up QEMU
66
+ uses : docker/setup-qemu-action@v3
67
+ -
68
+ name : Set up Docker Buildx
69
+ uses : docker/setup-buildx-action@v3
70
+ -
71
+ name : Build and push
72
+ uses : docker/build-push-action@v6
73
+ with :
74
+ platforms : linux/amd64,linux/arm64
75
+ push : true
76
+ tags : paulorb/modbus-simulator-cli:latest,paulorb/modbus-simulator-cli:${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments