PHP 8.2 fix for dynamic property $exclude #233
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
name: Docker | |
on: | |
# We try to build image on each PR. | |
pull_request: ~ | |
# When tagged, we also push the image to the docker registry. | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Docker image build | |
env: | |
publish: ${{ github.event_name == 'push' }} | |
repository: 'nunomaduro/phpinsights' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get Release version | |
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV | |
if: ${{ env.publish == 'true' }} | |
- name: Login to docker hub | |
run: echo "${{ secrets.DOCKER_PASSWORD}}" | docker login -u "${{ secrets.DOCKER_USERNAME}}" --password-stdin | |
if: ${{ env.publish == 'true' }} | |
- name: Build image | |
run: docker build -f docker/Dockerfile -t ${{ env.repository }}:latest . | |
- name: Tag image | |
run: | | |
docker tag ${{ env.repository }}:latest ${{ env.repository }}:${{ env.RELEASE_VERSION }} | |
if: ${{ env.publish == 'true' }} | |
- name: Push image to hub.docker.com registry | |
run: docker push ${{ env.repository }} | |
if: ${{ env.publish == 'true' }} |