Skip to content

Commit b537510

Browse files
committed
- PHP 8.1
- Node.JS 16 - Laravel Vapor Gitlab template
1 parent 56d27c6 commit b537510

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.0
1+
FROM php:8.1
22

33
# Install linux dependencies
44
RUN apt-get update && apt-get install -qq curl apt-transport-https git build-essential \
@@ -30,7 +30,7 @@ RUN composer global require "laravel/vapor-cli"
3030

3131
# Install Node (with NPM), and Yarn (via package manager for Debian)
3232
# https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
33-
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
33+
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
3434
RUN apt-get update \
3535
&& apt-get install -y \
3636
nodejs

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ This image is for building, testing and deploying Laravel applications from dock
44

55
## Softwares included
66

7-
- PHP 7.4
8-
- nodeJS 14 (current LTS version)
7+
- PHP 8.1
8+
- Node.js 16 (current LTS version)
99
- Yarn
1010
- Composer
1111
- Laravel Envoy
1212
- Laravel Vapor CLI
13+
14+
15+
## Example list
16+
17+
- Gitlab CI/CD with Laravel Vapor
18+
19+
## Contributing
20+
21+
If you would like to extend the toolset, or just provide other CI/CD templates, you are welcome!
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
image: drahosistvan/laravel-ci-tools:php8.1
2+
stages:
3+
- deploy
4+
5+
deploy_staging:
6+
stage: deploy
7+
before_script:
8+
- composer install
9+
script:
10+
- /root/.config/composer/vendor/bin/vapor deploy staging
11+
only:
12+
- develop
13+
environment:
14+
name: staging
15+
url: https://staging.example.com
16+
17+
deploy_production:
18+
stage: deploy
19+
before_script:
20+
- composer install
21+
script:
22+
- /root/.config/composer/vendor/bin/vapor deploy production
23+
only:
24+
- main
25+
environment:
26+
name: production
27+
url: https://production.example.com

0 commit comments

Comments
 (0)