File tree 1 file changed +56
-0
lines changed 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : Build dockers
4
+
5
+ on :
6
+
7
+ push :
8
+ branches :
9
+ - master
10
+
11
+ workflow_dispatch :
12
+
13
+ jobs :
14
+
15
+ docker :
16
+ name : Build dockers
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+
22
+ - uses : docker/setup-qemu-action@v2
23
+ - uses : docker/setup-buildx-action@v2
24
+ with :
25
+ install : true
26
+ platforms : linux/amd64,linux/arm64/v8,linux/arm/v7
27
+
28
+ - uses : docker/login-action@v2
29
+ with :
30
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
31
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
32
+
33
+ - name : tell me
34
+ run : |
35
+ set
36
+ echo Ref ${{github.ref}}
37
+ echo Event ${{github.event_name}}
38
+ echo Tag ${{github.event.release.tag_name}}
39
+
40
+ - name : build and push in master
41
+ uses : docker/build-push-action@v4
42
+ if : ${{ github.event.release.tag_name == '' }}
43
+ with :
44
+ push : true
45
+ tags : redislabs/memtier-benchmark:edge
46
+ context : .
47
+ platforms : linux/amd64,linux/arm64/v8,linux/arm/v7
48
+
49
+ - name : build and push on release
50
+ uses : docker/build-push-action@v4
51
+ if : ${{ github.event.release.tag_name != '' }}
52
+ with :
53
+ push : true
54
+ tags : redislabs/memtier-benchmark:${{ github.event.release.tag_name }}
55
+ context : .
56
+ platforms : linux/amd64,linux/arm64/v8,linux/arm/v7
You can’t perform that action at this time.
0 commit comments