Skip to content

Commit 7676fe7

Browse files
author
Kevin Buchholz
committed
rename workflow and make last changes for production use
1 parent 41c5faf commit 7676fe7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/imagebuild.yml renamed to .github/workflows/stableImageBuild.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Build Image
1+
name: Build stable image
22

3-
on: ['push']
4-
# tags:
5-
# - '*.*.*'
3+
on:
4+
tags:
5+
- '*.*.*'
66

77
jobs:
88
docker:
@@ -18,10 +18,12 @@ jobs:
1818
with:
1919
# list of Docker images to use as base name for tags
2020
images: |
21-
neroazure/docker-laravel
21+
sourceboat/docker-laravel
22+
ghcr.io/sourceboat/docker-laravel
23+
flavour: |
24+
latest=true
2225
# generate Docker tags based on the following events/attributes
2326
tags: |
24-
type=ref,event=branch
2527
type=semver,pattern={{version}}
2628
type=semver,pattern={{major}}.{{minor}}
2729
type=semver,pattern={{major}}
@@ -37,20 +39,18 @@ jobs:
3739
with:
3840
username: ${{ secrets.DOCKERHUB_USERNAME }}
3941
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 }}
4749
-
4850
name: Build and push
4951
uses: docker/build-push-action@v2
5052
with:
5153
context: .
5254
platforms: linux/amd64,linux/arm64
5355
push: true
54-
# ghcr.io/user/app:1.0.0
55-
# ghcr.io/user/app:latest
5656
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)