Skip to content

Commit 0623b09

Browse files
authored
Merge pull request #1 from mtigdemir/embed-gist-into-readme
Embed gist into readme
2 parents ee01062 + f4603e9 commit 0623b09

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FROM php:7.1-cli-alpine
2+
FROM php:7.3.25-cli-alpine
33

44
## Install SSH and Rsync
55
RUN apk add --no-cache openssh rsync
@@ -12,4 +12,4 @@ RUN composer global require deployer/deployer
1212
RUN composer global require deployer/recipes --dev
1313

1414
## Add Composer vendor into PATH
15-
ENV PATH /root/.composer/vendor/bin:$PATH
15+
ENV PATH /root/.composer/vendor/bin:$PATH

README.md

+31-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,35 @@ Please have a look at this article to find out how to use Deployer with self-bui
55
https://medium.com/@mtigdemir/php-deployment-with-deployer-to-aws-via-bitbucket-pipeline-a605763c63bf
66

77

8-
## Example Bitbucket Pipeline
8+
## How to use Deployer Image with Bitbucket Pipeline
99

10-
<script src="https://gist.github.com/mtigdemir/1bb599d7fa5caad3ab647aad87fadc18.js"></script>
10+
### Available Versions
11+
12+
- PHP 7.1 (`mtigdemir\php-deployer-pipeline:7.1`)
13+
- PHP 7.3 (`mtigdemir\php-deployer-pipeline:7.3.25`)
14+
15+
```
16+
image: mtigdemir/php-deployer-pipeline:{version}
17+
18+
pipelines:
19+
branches:
20+
master:
21+
- step:
22+
caches:
23+
- composer
24+
script:
25+
- composer install
26+
- vendor/bin/phpunit
27+
- dep deploy -vvv test
28+
29+
production:
30+
- step:
31+
caches:
32+
- composer
33+
script:
34+
- composer install --no-dev
35+
- dep deploy production
36+
```
37+
38+
39+
**Please note that, only PHP 7.1 tag uses Composer v1 and all the builds after that compatible with Composer v2**

0 commit comments

Comments
 (0)