File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " **"
7
+ tags :
8
+ - ' v*'
9
+ pull_request :
10
+ branches :
11
+ - " master"
12
+
13
+ jobs :
14
+ docker :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Set up Docker Buildx
18
+ uses : docker/setup-buildx-action@v2
19
+
20
+ - name : Docker meta
21
+ id : meta
22
+ uses : docker/metadata-action@v4
23
+ with :
24
+ # list of Docker images to use as base name for tags
25
+ images : |
26
+ ghcr.io/igor47/smrs
27
+ flavor : |
28
+ latest=auto
29
+
30
+ - name : Login to GitHub Container Registry
31
+ uses : docker/login-action@v2
32
+ with :
33
+ registry : ghcr.io
34
+ username : ${{ github.actor }}
35
+ password : ${{ secrets.GITHUB_TOKEN }}
36
+
37
+ - name : Build and Push Docker Image
38
+ uses : docker/build-push-action@v3
39
+ with :
40
+ push : ${{ github.event_name != 'pull_request' }}
41
+ tags : ${{ steps.meta.outputs.tags }}
42
+ cache-from : type=gha
43
+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments