Skip to content

Commit ba579ae

Browse files
committed
run on all branches
1 parent a546dc3 commit ba579ae

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ env:
66

77
on:
88
push:
9-
branches:
10-
- master
11-
- develop
12-
- production
13-
tags:
14-
- '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-?*'
159

1610
jobs:
1711

@@ -24,26 +18,22 @@ jobs:
2418
steps:
2519
- uses: actions/checkout@v3
2620

27-
- name: Login to GitHub Container Registry
28-
uses: docker/login-action@v2
29-
with:
30-
registry: ghcr.io
31-
username: ${{ github.repository_owner }}
32-
password: ${{ secrets.GITHUB_TOKEN }}
21+
# - name: Login to GitHub Container Registry
22+
# uses: docker/login-action@v2
23+
# with:
24+
# registry: ghcr.io
25+
# username: ${{ github.repository_owner }}
26+
# password: ${{ secrets.GITHUB_TOKEN }}
3327

3428
- name: Build docker image using Github Packages as cache
3529
env:
3630
PHP_VERSION: ${{ matrix.php-version }}
3731
run: |
38-
docker pull $DOCKER_REGISTRY_IMAGE:${PHP_VERSION} || true
39-
cd docker
4032
docker build \
4133
--file docker/Dockerfile \
4234
--build-arg PHP_VERSION=${PHP_VERSION} \
43-
--cache-from $DOCKER_REGISTRY_IMAGE:${PHP_VERSION} \
4435
--tag $DOCKER_REGISTRY_IMAGE:${PHP_VERSION} \
45-
--tag $DOCKER_REGISTRY_IMAGE:latest .
46-
docker push $DOCKER_REGISTRY_IMAGE:${PHP_VERSION}
36+
.
4737
4838
# - name: Cache vendor folder
4939
# uses: actions/cache@v3
@@ -64,6 +54,7 @@ jobs:
6454
usx:
6555
runs-on: ubuntu-22.04
6656
needs: test
57+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
6758
steps:
6859
- name: Checkout
6960
uses: actions/checkout@v3
@@ -90,6 +81,7 @@ jobs:
9081
eu2:
9182
runs-on: ubuntu-22.04
9283
needs: test
84+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
9385
steps:
9486
- name: Checkout
9587
uses: actions/checkout@v3
@@ -117,6 +109,7 @@ jobs:
117109
us1:
118110
runs-on: ubuntu-22.04
119111
needs: test
112+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
120113
steps:
121114
- name: Checkout
122115
uses: actions/checkout@v3

0 commit comments

Comments
 (0)