Commit 847ce60 1 parent 27d7572 commit 847ce60 Copy full SHA for 847ce60
File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : docker
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ docker :
10
+ name : build docker image
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Set up go environment
14
+ uses : actions/setup-go@v2
15
+ with :
16
+ go-version : 1.19
17
+ id : go
18
+ - name : Check out code
19
+ uses : actions/checkout@v3
20
+ with :
21
+ path : ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
22
+ fetch-depth : 2
23
+ - name : Set up QEMU
24
+ uses : docker/setup-qemu-action@v1
25
+ - name : Set up Docker Buildx
26
+ uses : docker/setup-buildx-action@v1
27
+ - name : Log into registry
28
+ uses : docker/login-action@v3
29
+ with :
30
+ username : ${{ secrets.DOCKER_USERNAME }}
31
+ password : ${{ secrets.DOCKER_PASSWORD }}
32
+ registry : docker.io
33
+ - name : Build and Push Docker images
34
+ run : |
35
+ export GOPATH=${GITHUB_WORKSPACE}/go
36
+ export PATH=$PATH:$GOPATH/bin
37
+ export IMAGE_TAG=latest
38
+ make image-multiarch
39
+ working-directory : ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
You can’t perform that action at this time.
0 commit comments