Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
damienwebdev committed Aug 9, 2020
1 parent 66e5077 commit 48dbcc0
Showing 1 changed file with 55 additions and 52 deletions.
107 changes: 55 additions & 52 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,63 +10,66 @@ jobs:
build-php:
strategy:
matrix:
node: [7.2, 7.3, 7.4]
php: [7.2, 7.3, 7.4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the graycore/magento-php:${{ matrix.node }}-fpm-alpine image
run: docker build ./php/${{ matrix.node }}/alpine
-t graycore/magento-php:${{ matrix.node }}-fpm-alpine-${GITHUB_REF##*/}
-t graycore/magento-php:${{ matrix.node }}-fpm-alpine
- name: Build the graycore/magento-php:${{ matrix.node }}-fpm-alpine-develop image
run: docker build ./php/${{ matrix.node }}/alpine-develop
-t graycore/magento-php:${{ matrix.node }}-fpm-alpine-develop-${GITHUB_REF##*/}
-t graycore/magento-php:${{ matrix.node }}-fpm-alpine-develop
- name: Build the graycore/magento-php:${{ matrix.php }}-fpm-alpine image
run: docker build ./php/${{ matrix.php }}/alpine
-t graycore/magento-php:${{ matrix.php }}-fpm-alpine-${GITHUB_REF##*/}
-t graycore/magento-php:${{ matrix.php }}-fpm-alpine

- name: Build the graycore/magento-php:${{ matrix.php }}-fpm-alpine-develop image
run: docker build ./php/${{ matrix.php }}/alpine-develop
-t graycore/magento-php:${{ matrix.php }}-fpm-alpine-develop-${GITHUB_REF##*/}
-t graycore/magento-php:${{ matrix.php }}-fpm-alpine-develop

- name: Login to registry
run: docker login -u $DOCKER_USER -p $DOCKER_PASS
if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name == 'release' }}
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
# - name: Publish latest graycore/magento-php:${{ matrix.node }}-fpm-alpine image
# run: docker push graycore/magento-php:${{ matrix.node }}-fpm-alpine
# - name: Publish tag graycore/magento-php:${{ matrix.node }}-fpm-alpine-${GITHUB_REF##*/} image
# run: docker push graycore/magento-php:${{ matrix.node }}-fpm-alpine-${GITHUB_REF##*/}
# - name: Publish latest graycore/magento-php:${{ matrix.node }}-fpm-alpine-develop image
# run: docker push graycore/magento-php:${{ matrix.node }}-fpm-alpine-develop
# - name: Publish tag graycore/magento-php:${{ matrix.node }}-fpm-alpine-develop-${GITHUB_REF##*/} image
# run: docker push graycore/magento-php:${{ matrix.node }}-fpm-alpine-develop-${GITHUB_REF##*/}
# build-nginx-1-17-alpine-develop:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Build the Alpine Develop Nginx image
# run: docker build ./nginx/1.17/alpine-develop
# -t graycore/magento-nginx:1.17-alpine-develop-${GITHUB_REF##*/}
# -t graycore/magento-nginx:1.17-alpine-develop
# - name: Login to registry
# run: docker login -u $DOCKER_USER -p $DOCKER_PASS
# env:
# DOCKER_USER: ${{ secrets.DOCKER_USER }}
# DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
# - name: Publish latest image
# run: docker push graycore/magento-nginx:1.17-alpine-develop
# - name: Publish tag image
# run: docker push graycore/magento-nginx:1.17-alpine-develop-${GITHUB_REF##*/}
# build-nginx-1-18-alpine-develop:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Build the Alpine Develop Nginx image
# run: docker build ./nginx/1.18/alpine-develop
# -t graycore/magento-nginx:1.18-alpine-develop-${GITHUB_REF##*/}
# -t graycore/magento-nginx:1.18-alpine-develop
# - name: Login to registry
# run: docker login -u $DOCKER_USER -p $DOCKER_PASS
# env:
# DOCKER_USER: ${{ secrets.DOCKER_USER }}
# DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
# - name: Publish latest image
# run: docker push graycore/magento-nginx:1.18-alpine-develop
# - name: Publish tag image
# run: docker push graycore/magento-nginx:1.18-alpine-develop-${GITHUB_REF##*/}

- name: Publish latest graycore/magento-php:${{ matrix.php }}-fpm-alpine image
if: ${{ github.event_name == 'release' }}
run: docker push graycore/magento-php:${{ matrix.php }}-fpm-alpine

- name: Publish tag graycore/magento-php:${{ matrix.php }}-fpm-alpine-${GITHUB_REF##*/} image
if: ${{ github.event_name == 'release' }}
run: docker push graycore/magento-php:${{ matrix.php }}-fpm-alpine-${GITHUB_REF##*/}

- name: Publish latest graycore/magento-php:${{ matrix.php }}-fpm-alpine-develop image
if: ${{ github.event_name == 'release' }}
run: docker push graycore/magento-php:${{ matrix.php }}-fpm-alpine-develop

- name: Publish tag graycore/magento-php:${{ matrix.php }}-fpm-alpine-develop-${GITHUB_REF##*/} image
if: ${{ github.event_name == 'release' }}
run: docker push graycore/magento-php:${{ matrix.php }}-fpm-alpine-develop-${GITHUB_REF##*/}

build-nginx:
strategy:
matrix:
nginx: [1.17, 1.18]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the graycore/magento-nginx:${{ matrix.nginx }}-alpine-develop image
run: docker build ./nginx/${{ matrix.nginx }}/alpine-develop
-t graycore/magento-nginx:${{ matrix.nginx }}-alpine-develop-${GITHUB_REF##*/}
-t graycore/magento-nginx:${{ matrix.nginx }}-alpine-develop

- name: Login to registry
if: ${{ github.event_name == 'release' }}
run: docker login -u $DOCKER_USER -p $DOCKER_PASS
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}

- name: Publish graycore/magento-nginx:${{ matrix.nginx }}-alpine-develop image
if: ${{ github.event_name == 'release' }}
run: docker push graycore/magento-nginx:${{ matrix.nginx }}-alpine-develop

- name: Publish graycore/magento-nginx:${{ matrix.nginx }}-alpine-develop-${GITHUB_REF##*/} image
if: ${{ github.event_name == 'release' }}
run: docker push graycore/magento-nginx:${{ matrix.nginx }}-alpine-develop-${GITHUB_REF##*/}

0 comments on commit 48dbcc0

Please sign in to comment.