Publish Docker #110
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: Publish Docker | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * 4' | |
jobs: | |
latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build latest version and publish to GitHub Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: mileschou/composer | |
tags: "latest,8.3" | |
username: mileschou | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: ghcr.io | |
dockerfile: 8.3/Dockerfile | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ["8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0", "5.6", "5.5"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build PHP ${{ matrix.version }} and publish to GitHub Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: mileschou/composer:${{ matrix.version }} | |
username: mileschou | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: ghcr.io | |
dockerfile: ${{ matrix.version }}/Dockerfile | |
latest_v1: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build latest version and publish to GitHub Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: mileschou/composer | |
tags: "v1,8.3-v1" | |
username: mileschou | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: ghcr.io | |
dockerfile: 8.3/v1/Dockerfile | |
build_v1: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ["8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0", "5.6"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build PHP ${{ matrix.version }} and publish to GitHub Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: mileschou/composer:${{ matrix.version }}-v1 | |
username: mileschou | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: ghcr.io | |
dockerfile: ${{ matrix.version }}/v1/Dockerfile | |
testing: | |
needs: [latest, build, latest_v1, build_v1] | |
uses: ./.github/workflows/testing.yml |