Skip to content

Commit 6a00c36

Browse files
committed
[DockerImages] Change readme
1 parent 6f29dd2 commit 6a00c36

File tree

2 files changed

+3
-77
lines changed

2 files changed

+3
-77
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
paths-ignore:
77
- "docs/**"
8+
- "*.md"
89

910
env:
1011
REGISTRY: ghcr.io

README.md

Lines changed: 2 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -6,83 +6,8 @@ It is repository with base images of node & php
66
- [docker](https://www.docker.com/)
77

88
```yaml
9-
build-and-publish-php-image:
10-
strategy:
11-
matrix:
12-
php: [ "7.4-fpm", "8.0-fpm" ]
13-
runs-on: ubuntu-20.04
14-
name: "Build & publish sylius base php docker image - php:${{ matrix.php }}"
15-
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up Docker Buildx
18-
id: buildx
19-
uses: docker/setup-buildx-action@v1
20-
- name: Log in to the Container registry
21-
uses: docker/login-action@v1
22-
with:
23-
registry: ${{ env.REGISTRY }}
24-
username: ${{ github.actor }}
25-
password: ${{ secrets.GITHUB_TOKEN }}
26-
- name: Extract metadata (tags, labels) for Docker
27-
id: meta
28-
uses: docker/metadata-action@v3
29-
with:
30-
images: ${{ env.REGISTRY }}/${{ env.PHP_IMAGE_NAME }}
31-
tags: |-
32-
type=sha,enable=true,priority=100,prefix=${{ matrix.php }}-sha-,suffix=,format=short
33-
type=ref,event=branch,prefix=${{ matrix.php }}-
34-
type=semver,prefix=${{ matrix.php }}-,pattern={{version}}
35-
36-
- name: Build and push Docker php image
37-
uses: docker/build-push-action@v2
38-
with:
39-
context: php/
40-
push: true
41-
tags: ${{ steps.meta.outputs.tags }}
42-
labels: ${{ steps.meta.outputs.labels }}
43-
build-args: |
44-
PHP_BASE_IMAGE_TAG=${{ matrix.php }}
45-
cache-from: type=gha
46-
cache-to: type=gha,mode=max
47-
48-
build-and-publish-node-image:
49-
strategy:
50-
matrix:
51-
node: [ "12-slim" ]
52-
runs-on: ubuntu-20.04
53-
name: "Build & publish sylius base node docker image - node:${{ matrix.node }}"
54-
steps:
55-
- uses: actions/checkout@v2
56-
- name: Set up Docker Buildx
57-
id: buildx
58-
uses: docker/setup-buildx-action@v1
59-
- name: Log in to the Container registry
60-
uses: docker/login-action@v1
61-
with:
62-
registry: ${{ env.REGISTRY }}
63-
username: ${{ github.actor }}
64-
password: ${{ secrets.GITHUB_TOKEN }}
65-
- name: Extract metadata (tags, labels) for Docker
66-
id: meta
67-
uses: docker/metadata-action@v3
68-
with:
69-
images: ${{ env.REGISTRY }}/${{ env.NODE_IMAGE_NAME }}
70-
tags: |-
71-
type=sha,enable=true,priority=100,prefix=${{ matrix.node }}-sha-,suffix=,format=short
72-
type=ref,event=branch,prefix=${{ matrix.node }}-
73-
type=semver,prefix=${{ matrix.node }}-,pattern={{version}}
74-
75-
- name: Build and push Docker node image
76-
uses: docker/build-push-action@v2
77-
with:
78-
context: node/
79-
push: true
80-
tags: ${{ steps.meta.outputs.tags }}
81-
labels: ${{ steps.meta.outputs.labels }}
82-
build-args: |
83-
NODE_BASE_IMAGE_TAG=${{ matrix.node }}
84-
cache-from: type=gha
85-
cache-to: type=gha,mode=max
9+
docker pull ghcr.io/sylius/docker-images-php:latest
10+
docker pull ghcr.io/sylius/docker-images-node:latest
8611
```
8712

8813
If you have any questions please do not hesitate to contact me [Arminek](https://github.com/Arminek)

0 commit comments

Comments
 (0)