Full docker and packages update (#1) #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker | |
# Build and push php images to Docker Hub | |
name: Build and push | |
on: | |
push: | |
paths: | |
- 'build/**' | |
- '.github/**' | |
branches: | |
- 'main' | |
tags: | |
- '*' | |
jobs: | |
php81-cli-base: | |
name: Build and push php81 cli base image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./build/php81/cli/base | |
file: ./build/php81/cli/base/Dockerfile | |
cache-from: type=gha,scope=php81-cli | |
cache-to: type=gha,scope=php81-cli,mode=max | |
push: true | |
tags: anzusystems/php:${{ github.ref_name }}-php81-cli,anzusystems/php:latest-php81-cli | |
php81-cli-vipsffmpeg: | |
name: Build and push php81 cli vipsffmpeg image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./build/php81/cli/vipsffmpeg | |
file: ./build/php81/cli/vipsffmpeg/Dockerfile | |
cache-from: type=gha,scope=php81-cli-vipsffmpeg | |
cache-to: type=gha,scope=php81-cli-vipsffmpeg,mode=max | |
push: true | |
tags: anzusystems/php:${{ github.ref_name }}-php81-cli-vipsffmpeg,anzusystems/php:latest-php81-cli-vipsffmpeg | |
php81-fpm-vipsffmpeg-nginx: | |
name: Build and push php81 fpm vipsffmpeg-nginx image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./build/php81/fpm/vipsffmpeg-nginx | |
file: ./build/php81/fpm/vipsffmpeg-nginx/Dockerfile | |
cache-from: type=gha,scope=php81-fpm-vipsffmpeg-nginx | |
cache-to: type=gha,scope=php81-fpm-vipsffmpeg-nginx,mode=max | |
push: true | |
tags: anzusystems/php:${{ github.ref_name }}-php81-fpm-vipsffmpeg-nginx,anzusystems/php:latest-php81-fpm-vipsffmpeg-nginx | |
php82-cli-base: | |
name: Build and push php82 cli base image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./build/php82/cli/base | |
file: ./build/php82/cli/base/Dockerfile | |
cache-from: type=gha,scope=php82-cli | |
cache-to: type=gha,scope=php82-cli,mode=max | |
push: true | |
tags: anzusystems/php:${{ github.ref_name }}-php82-cli,anzusystems/php:latest-php82-cli | |
php82-cli-vipsffmpeg: | |
name: Build and push php82 cli vipsffmpeg image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./build/php82/cli/vipsffmpeg | |
file: ./build/php82/cli/vipsffmpeg/Dockerfile | |
cache-from: type=gha,scope=php82-cli-vipsffmpeg | |
cache-to: type=gha,scope=php82-cli-vipsffmpeg,mode=max | |
push: true | |
tags: anzusystems/php:${{ github.ref_name }}-php82-cli-vipsffmpeg,anzusystems/php:latest-php82-cli-vipsffmpeg | |
php82-fpm-vipsffmpeg-nginx: | |
name: Build and push php82 fpm vipsffmpeg-nginx image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./build/php82/fpm/vipsffmpeg-nginx | |
file: ./build/php82/fpm/vipsffmpeg-nginx/Dockerfile | |
cache-from: type=gha,scope=php82-fpm-vipsffmpeg-nginx | |
cache-to: type=gha,scope=php82-fpm-vipsffmpeg-nginx,mode=max | |
push: true | |
tags: anzusystems/php:${{ github.ref_name }}-php82-fpm-vipsffmpeg-nginx,anzusystems/php:latest-php82-fpm-vipsffmpeg-nginx | |