Commit df83ad2 1 parent 2d99da7 commit df83ad2 Copy full SHA for df83ad2
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 : Deploy
2
+
3
+ on :
4
+ push :
5
+ # Sequence of patterns matched against refs/tags
6
+ tags :
7
+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8
+
9
+ jobs :
10
+ deploy :
11
+ name : Deploy
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Setting up enviroment variables
16
+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
17
+
18
+ # https://github.com/actions/checkout
19
+ - name : Checkout code
20
+ uses : actions/checkout@v2
21
+
22
+ # https://github.com/docker/build-push-action
23
+ - name : Set up QEMU
24
+ uses : docker/setup-qemu-action@v1
25
+
26
+ - name : Set up Docker Buildx
27
+ uses : docker/setup-buildx-action@v1
28
+
29
+ - name : Login to DockerHub
30
+ uses : docker/login-action@v1
31
+ with :
32
+ username : ${{ secrets.DOCKER_USERNAME }}
33
+ password : ${{ secrets.DOCKER_PASSWORD }}
34
+
35
+ - name : Build and push to DockerHub
36
+ id : docker_build
37
+ uses : docker/build-push-action@v2
38
+ with :
39
+ push : true
40
+ tags : |
41
+ ${{ secrets.DOCKER_REPOSITORY }}:${{ env.RELEASE_VERSION }}
42
+ ${{ secrets.DOCKER_REPOSITORY }}:latest
43
+
44
+ - name : Image digest
45
+ run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments