Skip to content

Release version 17.0.0 (#4185) #8

Release version 17.0.0 (#4185)

Release version 17.0.0 (#4185) #8

on:
push:
tags:
- '**'
workflow_dispatch:
name: Build PHP Image for released version
jobs:
build-tagged-version:
name: Build tag
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: GIT checkout tag - ${{ github.ref }}
uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Build PHP-FPM image and push it to DockerHub
run: |
TAG=shopsys/php-image:${{ github.ref_name }}
docker buildx build --push --tag ${TAG} --no-cache --platform linux/arm64,linux/amd64 --compress -f ./Dockerfile .