File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build for Development
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ release :
8
+ types : [released]
9
+
10
+
11
+ env :
12
+ REGISTRY : ghcr.io
13
+
14
+ jobs :
15
+ build-image :
16
+ name : Build image
17
+ runs-on : ubuntu-latest
18
+ timeout-minutes : 20
19
+ steps :
20
+ - name : Checkout Code
21
+ uses : actions/checkout@v3
22
+
23
+ - name : Log into container registry
24
+ uses : docker/login-action@v2
25
+ with :
26
+ registry : ${{ env.REGISTRY }}
27
+ username : ${{ github.actor }}
28
+ password : ${{ secrets.GITHUB_TOKEN }}
29
+
30
+ - name : Docker meta
31
+ uses : docker/metadata-action@v4
32
+ id : meta
33
+ with :
34
+ images : |
35
+ ${{ env.REGISTRY }}/${{ github.repository }}
36
+ tags : |
37
+ type=ref,event=branch
38
+ type=sha
39
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }}
40
+ type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }}
41
+
42
+ - name : Build and push
43
+ uses : docker/build-push-action@v4
44
+ with :
45
+ context : .
46
+ push : true
47
+ tags : ${{ steps.meta.outputs.tags }}
48
+ labels : ${{ steps.meta.output.labels }}
You can’t perform that action at this time.
0 commit comments