name: Release on: push: tags: - '*' jobs: build_push: runs-on: ubuntu-latest container: git.gertjankrol.nl/docker/toolkit:latest steps: - name: Check out repository uses: actions/checkout@v3 - name: Docker login uses: actions/docker-login@v2 with: registry: ${{secrets.DOCKER_REGISTRY}} username: ${{secrets.DOCKER_USERNAME}} password: ${{secrets.DOCKER_PASSWORD}} - name: Build and push PHP image uses: actions/docker-build-push@v4 with: tags: | ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}} ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:latest push: true - name: Build and push PHP-FPM image uses: actions/docker-build-push@v4 with: tags: | ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}}-fpm ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:latest-fpm file: Dockerfile-fpm push: true