-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from vuongxuongminh/3.x
Bump template to 3.x
- Loading branch information
Showing
85 changed files
with
336 additions
and
8,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/.github export-ignore | ||
/.gitattributes export-ignore | ||
/screenshots export-ignore | ||
/.gitattributes export-ignore |
38 changes: 23 additions & 15 deletions
38
.github/workflows/dockerpublish.yml → .github/workflows/ci.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,40 @@ | ||
name: Docker | ||
name: CI | ||
|
||
on: push | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
env: | ||
PHP_IMAGE: vuongxuongminh/docker-helm-symfony-php | ||
NGINX_IMAGE: vuongxuongminh/docker-helm-symfony-nginx | ||
IMAGE: vuongxuongminh/docker-helm-symfony | ||
|
||
jobs: | ||
# Run tests. | ||
# See also https://docs.docker.com/docker-hub/builds/automated-testing/ | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run setup | ||
run: docker-compose run --rm setup | ||
- name: Up services | ||
run: docker-compose up -d | ||
- name: Wait seconds | ||
run: sleep 5 | ||
- name: Test with curl | ||
run: curl http://localhost | grep "Welcome to Symfony!" | ||
build: | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Log into registry | ||
run: echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Build images | ||
run: | | ||
docker-compose -f docker-compose.yaml -f docker-compose.override.yaml build | ||
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml build | ||
docker-compose -f docker-compose.yaml -f docker-compose.override.yaml build fpm | ||
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml build fpm | ||
- name: Push image | ||
run: | | ||
docker-compose -f docker-compose.yaml -f docker-compose.override.yaml push | ||
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml push | ||
docker-compose -f docker-compose.yaml -f docker-compose.override.yaml push fpm | ||
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml push fpm | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.