Merge pull request #37 from recognizegroup/dependabot/github_actions/… #219
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: Build | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * 1' | |
jobs: | |
build: | |
name: 'Build and push containers' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: | |
- '^(8\.1)(\.\d+)?-apache$' | |
- '^(8\.2)(\.\d+)?-apache$' | |
- '^(8\.3)(\.\d+)?-apache$' | |
- '^(8\.1)(\.\d+)?-fpm$' | |
- '^(8\.2)(\.\d+)?-fpm$' | |
- '^(8\.3)(\.\d+)?-fpm$' | |
steps: | |
- name: Setup multi-architecture support | |
run: 'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes' | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Yarn install | |
run: yarn | |
- name: Yarn start | |
run: 'yarn start "${{ matrix.php }}" "linux/amd64,linux/arm64"' | |
env: | |
INPUT_TOKEN: ${{ secrets.GITHUB_TOKEN }} |