Skip to content

Create LICENSE

Create LICENSE #148

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
login:
name: checkout
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: my-artifact
path: .
retention-days: 1
buildAndPush_php8s:
name: build php:8 versions
runs-on: ubuntu-latest
needs:
- login
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: my-artifact
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT_TOKEN }}
- name: build php:8
run: docker build -f dockerfiles/php8-mongo-fpm.dockerfile --tag 'ghcr.io/danielpetrica/php:8-mongo' .
- name: and push ghcr.io/danielpetrica/php:8-mongo
run: docker push ghcr.io/danielpetrica/php:8-mongo
- name: build php:8-composer1
run: docker build -f dockerfiles/php8-mongo-fpm-composer1.dockerfile --tag 'ghcr.io/danielpetrica/php:8-mongo-composer1' .
- name: and push ghcr.io/danielpetrica/php:8-mongo-composer1
run: docker push ghcr.io/danielpetrica/php:8-mongo-composer1
buildAndPush_php7_4_10s:
name: build php:7.4.10 versions
runs-on: ubuntu-latest
needs:
- login
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: my-artifact
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT_TOKEN }}
- name: build php:7.4.10
run: docker build -f dockerfiles/php7.4.10-fpm.dockerfile --tag 'ghcr.io/danielpetrica/php:7.4.10' .
- name: build php:7.4.10-composer1
run: docker build -f dockerfiles/php7.4.10-fpm-composer1.dockerfile --tag 'ghcr.io/danielpetrica/php:7.4.10-composer1' .
- name: build php:7.4.10-mongo
run: docker build -f dockerfiles/php7.4.10-mongo-fpm.dockerfile --tag 'ghcr.io/danielpetrica/php:7.4.10-mongo' .
- name: and push php:7.4.10
run: docker push ghcr.io/danielpetrica/php:7.4.10
- name: and push php:7.4.10-composer1
run: docker push ghcr.io/danielpetrica/php:7.4.10-composer1
- name: and push php:7.4.10-mongo
run: docker push ghcr.io/danielpetrica/php:7.4.10-mongo
buildAndPush_php7_4_8s:
name: build php:7.4.8 versions
runs-on: ubuntu-latest
needs:
- login
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: my-artifact
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT_TOKEN }}
- name: build php:7.4.8
run: docker build -f dockerfiles/php7.4.8-fpm.dockerfile --tag 'ghcr.io/danielpetrica/php:7.4.8' .
- name: and push php:7.4.8
run: docker push ghcr.io/danielpetrica/php:7.4.8
buildAndPush_php73s:
name: build php:73 versions
runs-on: ubuntu-latest
needs:
- login
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: my-artifact
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT_TOKEN }}
- name: build php:7.3.3
run: docker build -f dockerfiles/php7.3.3-fpm.dockerfile --tag 'ghcr.io/danielpetrica/php:7.3.3' .
- name: build php:7.3.3-composer1
run: docker build -f dockerfiles/php7.3.3-fpm-composer1.dockerfile --tag 'ghcr.io/danielpetrica/php:7.3.3-composer1' .
- name: and push php:7.3.3
run: docker push ghcr.io/danielpetrica/php:7.3.3
- name: and push php:7.3.3-composer1
run: docker push ghcr.io/danielpetrica/php:7.3.3-composer1
buildAndPush_php72s:
name: build php:72 versions
runs-on: ubuntu-latest
needs:
- login
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: my-artifact
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT_TOKEN }}
- name: build php:7.2.24
run: docker build -f dockerfiles/php7.2.24-fpm.dockerfile --tag ghcr.io/danielpetrica/php:7.2.24 .
- name: and push php:7.2.24
run: docker push ghcr.io/danielpetrica/php:7.2.24
buildAndPush_php71s:
name: build php:71 versions
runs-on: ubuntu-latest
needs:
- login
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: my-artifact
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT_TOKEN }}
- name: build php:7.1.30-composer1
run: docker build -f dockerfiles/php7.1.30-fpm-composer1.dockerfile --tag ghcr.io/danielpetrica/php:7.1.30-composer1 .
- name: build php:7.1.30
run: docker build -f dockerfiles/php7.1.30-fpm.dockerfile --tag ghcr.io/danielpetrica/php:7.1.30 .
- name: and push php:7.1.30
run: docker push ghcr.io/danielpetrica/php:7.1.30
- name: and push php:7.1.30-composer1
run: docker push ghcr.io/danielpetrica/php:7.1.30-composer1