Use user instead of username #274
This file contains hidden or 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 | |
| uses: docker/setup-qemu-action@v3 | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Azure Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.DOCKER_REGISTRY }} | |
| username: ${{ secrets.DOCKER_USER }} | |
| 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 }} | |
| DOCKER _REGISTRY: ${{ secrets.DOCKER_REGISTRY }} |