-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a50ca1e
commit c35478f
Showing
7 changed files
with
192 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: Build Nginx for Heroku Stacks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build20-22: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [heroku-20, heroku-22] | ||
|
||
steps: | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Run Makefile target | ||
run: | | ||
make build-${{ matrix.target }} | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: | | ||
${{ matrix.target }}.tgz | ||
path: ./*.tgz | ||
|
||
build24: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [heroku-24] | ||
arch: [amd64, arm64] | ||
|
||
steps: | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Run Makefile target | ||
run: | | ||
make build-${{ matrix.target }}-${{ matrix.arch }} | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: | | ||
${{ matrix.target }}-${{ matrix.arch }}.tgz | ||
path: ./*.tgz | ||
|
||
|
||
commit: | ||
runs-on: ubuntu-latest | ||
needs: [build24, build20-22] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download build artifacts | ||
run: ls -R | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: ./ | ||
|
||
- name: Move artifacts to root directory | ||
run: | | ||
ls -R | ||
mv ./heroku*/*.tgz . | ||
ls -R | ||
- name: Remove folders starting with "heroku" | ||
run: | | ||
find . -type d -name "heroku*" -exec rm -rf {} + | ||
ls -R | ||
- name: Commit and push artifacts | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
ls -R | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add *.tgz | ||
git commit -m "Add nginx builds for Heroku stacks on multiple architectures" | ||
git push |
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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