Skip to content

move bots detection to separate nginx config file #139

move bots detection to separate nginx config file

move bots detection to separate nginx config file #139

Workflow file for this run

name: build-php
on:
push:
branches:
- master
tags:
pull_request:
jobs:
build-images:
name: Build PHP Docker images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up QEMU
uses: docker/setup-qemu-action@v3
- name: set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: build PHP 8.1 image for ghcr.io and DockerHub
working-directory: config/php
if: ${{ github.ref == 'refs/heads/master' }}
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
USERNAME: ${{ github.actor }}
run: |
echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
echo ${DOCKER_HUB_TOKEN} | docker login -u paskal --password-stdin
docker buildx build --push \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
-f Dockerfile.8.1 \
-t ghcr.io/paskal/bitrix-php:8.1 -t paskal/bitrix-php:8.1 .
- name: build PHP 8.2 image for ghcr.io and DockerHub
working-directory: config/php
if: ${{ github.ref == 'refs/heads/master' }}
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
USERNAME: ${{ github.actor }}
run: |
echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
echo ${DOCKER_HUB_TOKEN} | docker login -u paskal --password-stdin
docker buildx build --push \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
-f Dockerfile.8.2 \
-t ghcr.io/paskal/bitrix-php:8.2 -t paskal/bitrix-php:8.2 .
- name: build PHP 8.3 image for ghcr.io and DockerHub
working-directory: config/php
if: ${{ github.ref == 'refs/heads/master' }}
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
USERNAME: ${{ github.actor }}
run: |
echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
echo ${DOCKER_HUB_TOKEN} | docker login -u paskal --password-stdin
docker buildx build --push \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
-f Dockerfile.8.3 \
-t ghcr.io/paskal/bitrix-php:8.3 -t paskal/bitrix-php:8.3 .
- name: build Nginx Unit PHP 8.2 image for ghcr.io and DockerHub
working-directory: config/php
if: ${{ github.ref == 'refs/heads/master' }}
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
USERNAME: ${{ github.actor }}
run: |
echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
echo ${DOCKER_HUB_TOKEN} | docker login -u paskal --password-stdin
docker buildx build --push \
--platform linux/amd64,linux/arm64 \
-f Dockerfile.unit.8.2 \
-t ghcr.io/paskal/nginx-unit-bitrix:8.2 -t paskal/nginx-unit-bitrix:8.2 .