-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (54 loc) · 1.94 KB
/
sync.yml
File metadata and controls
67 lines (54 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Synchronize
concurrency:
group: s3-repository
cancel-in-progress: false
on:
workflow_dispatch:
release:
types: [published]
jobs:
sync:
name: Synchronize (${{ matrix.stack.name }}, ${{ matrix.stack.arch }})
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
stack:
- name: "heroku-22"
arch: "amd64"
stable: "dist-heroku-22-stable/"
develop: "dist-heroku-22-develop/"
os: "ubuntu-latest"
- name: "heroku-24"
arch: "amd64"
stable: "dist-heroku-24-amd64-stable/"
develop: "dist-heroku-24-amd64-develop/"
os: "ubuntu-latest"
- name: "heroku-24"
arch: "arm64"
stable: "dist-heroku-24-arm64-stable/"
develop: "dist-heroku-24-arm64-develop/"
os: "ubuntu-24.04-arm"
env:
S3_BUCKET: ${{ secrets.S3_BUCKET || 'heroku-php-extensions' }}
BUILDPACK: ./vendor/heroku/heroku-buildpack-php
steps:
- name: Checkout
uses: actions/checkout@v6
- 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: ./scripts/create-dockerfile.sh ${{ matrix.stack.name }}
- name: Docker build
run: ./scripts/build-dockerfile.sh ${{ matrix.stack.name }}
- name: Synchronize stable 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: |
echo "yes" | docker run --rm -i \
--env-file=${BUILDPACK}/support/build/_docker/env.default \
${{ matrix.stack.name }} sync.sh $S3_BUCKET ${{ matrix.stack.stable }} $S3_BUCKET ${{ matrix.stack.develop }}