Skip to content

Make repositories

Make repositories #76

Workflow file for this run

name: Make repositories
on:
workflow_dispatch:
workflow_run:
workflows: ["Build extensions"]
branches:
- main
types:
- completed
jobs:
mkrepo:
name: Make repository
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
stack:
- heroku-20
- heroku-22
env:
S3_BUCKET: heroku-php-extensions
BUILDPACK: ./vendor/heroku/heroku-buildpack-php
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Composer Install
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
- name: Copy requirements
run: cp ${BUILDPACK}/requirements.txt .
- name: Build Dockerfile
run: |
cat ${BUILDPACK}/support/build/_docker/${{ matrix.stack }}.Dockerfile > docker/build/${{ matrix.stack }}.Dockerfile
cat docker/${{ matrix.stack }}.Dockerfile >> docker/build/${{ matrix.stack }}.Dockerfile
- name: Docker build
run: docker build --pull --tag ${{ matrix.stack }} --file docker/build/${{ matrix.stack }}.Dockerfile .
- name: Make and upload repository
shell: 'script -q -e -c "bash {0}"'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
docker run --rm -ti \
--env-file=${BUILDPACK}/support/build/_docker/env.default \
${{ matrix.stack }} mkrepo.sh --upload