1
- name : Build Image
1
+ name : Build stable image
2
2
3
- on : ['push']
4
- # tags:
5
- # - '*.*.*'
3
+ on :
4
+ tags :
5
+ - ' *.*.*'
6
6
7
7
jobs :
8
8
docker :
@@ -18,10 +18,12 @@ jobs:
18
18
with :
19
19
# list of Docker images to use as base name for tags
20
20
images : |
21
- neroazure/docker-laravel
21
+ sourceboat/docker-laravel
22
+ ghcr.io/sourceboat/docker-laravel
23
+ flavour : |
24
+ latest=true
22
25
# generate Docker tags based on the following events/attributes
23
26
tags : |
24
- type=ref,event=branch
25
27
type=semver,pattern={{version}}
26
28
type=semver,pattern={{major}}.{{minor}}
27
29
type=semver,pattern={{major}}
@@ -37,20 +39,18 @@ jobs:
37
39
with :
38
40
username : ${{ secrets.DOCKERHUB_USERNAME }}
39
41
password : ${{ secrets.DOCKERHUB_TOKEN }}
40
- # -
41
- # name: Login to GitHub Container Registry
42
- # uses: docker/login-action@v1
43
- # with:
44
- # registry: ghcr.io
45
- # username: ${{ github.repository_owner }}
46
- # password: ${{ secrets.GITHUB_TOKEN }}
42
+ -
43
+ name : Login to GitHub Container Registry
44
+ uses : docker/login-action@v1
45
+ with :
46
+ registry : ghcr.io
47
+ username : ${{ github.repository_owner }}
48
+ password : ${{ secrets.GITHUB_TOKEN }}
47
49
-
48
50
name : Build and push
49
51
uses : docker/build-push-action@v2
50
52
with :
51
53
context : .
52
54
platforms : linux/amd64,linux/arm64
53
55
push : true
54
- # ghcr.io/user/app:1.0.0
55
- # ghcr.io/user/app:latest
56
56
tags : ${{ steps.meta.outputs.tags }}
0 commit comments