Skip to content

Commit

Permalink
Merge pull request #46 from laradock/bestlong-patch-2
Browse files Browse the repository at this point in the history
Update dockerpublish.yml
  • Loading branch information
bestlong committed May 4, 2021
2 parents 775136b + 64d3811 commit cb99acd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Docker Image CI

on:
push:
branches: '**'
branches:
- 'master'
tags: '**'
pull_request:
branches:
- 'master'
schedule:
- cron: 0 0 * * 6

Expand All @@ -27,7 +31,6 @@ jobs:
suffix=-${{ matrix.php_version }}
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
type=raw,value=latest
Expand All @@ -39,7 +42,7 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
if: ${{ (github.repository == 'laradock/workspace') && (github.ref == 'refs/heads/master') }}
if: ${{ (github.repository == 'laradock/workspace') }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
Expand All @@ -50,5 +53,5 @@ jobs:
with:
file: Dockerfile-${{ matrix.php_version }}
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
push: ${{ (github.repository == 'laradock/workspace') && (github.ref == 'refs/heads/master') }}
push: ${{ (github.repository == 'laradock/workspace') }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit cb99acd

Please sign in to comment.