Publish new docker image #7
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 composer-php | |
on: | |
push: | |
branches: [composer-php] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
docker-image: | |
- composer-php-7.0 | |
- composer-php-7.2 | |
- composer-php-7.4 | |
- composer-php-8.0 | |
- composer-php-8.1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log in to GitHub Container Registry | |
env: | |
GHCR_PERSONAL_TOKEN: ${{ secrets.GHCR_PERSONAL_TOKEN }} | |
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }} | |
run: | | |
echo $GHCR_PERSONAL_TOKEN | docker login ghcr.io -u $GHCR_USERNAME --password-stdin | |
- name: build ${{ matrix.docker-image }} | |
run: make build | |
working-directory: ${{ matrix.docker-image }} | |
- name: push ${{ matrix.docker-image }} | |
run: make push | |
working-directory: ${{ matrix.docker-image }} |