Docker build #407
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
on: | |
workflow_dispatch: | |
inputs: | |
nightly: | |
required: false | |
default: false | |
tags: | |
required: true | |
description: 'The tag to build the image with' | |
name: Docker build | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: phpdoc/phpdoc | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
snapshot: ${{ inputs.nightly }} | |
tags: ${{ inputs.tags }} | |
buildoptions: "--target=prod" | |
platforms: linux/amd64,linux/arm64 |