File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Publish Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ tags :
8
+ - v*
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+ with :
17
+ submodules : ' recursive'
18
+ - name : Set up QEMU
19
+ uses : docker/setup-qemu-action@v1
20
+ - name : Set up Docker Buildx
21
+ uses : docker/setup-buildx-action@v1
22
+ - name : Login to DockerHub
23
+ uses : docker/login-action@v1
24
+ with :
25
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
26
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
27
+ - name : Docker meta
28
+ id : docker_meta
29
+ uses : crazy-max/ghaction-docker-meta@v1
30
+ with :
31
+ images : opendronemap/clusterodm
32
+ tag-semver : |
33
+ {{version}}
34
+ - name : Build and push Docker image
35
+ id : docker_build
36
+ uses : docker/build-push-action@v2
37
+ with :
38
+ file : ./Dockerfile
39
+ platforms : linux/amd64,linux/arm64
40
+ push : true
41
+ tags : |
42
+ ${{ steps.docker_meta.outputs.tags }}
43
+ opendronemap/clusterodm:latest
44
+ - name : Image digest
45
+ run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments