-
Notifications
You must be signed in to change notification settings - Fork 40
31 lines (28 loc) · 954 Bytes
/
Copy pathpr-build.yaml
File metadata and controls
31 lines (28 loc) · 954 Bytes
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
name: Build pull request
on:
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
container: quay.io/hypernode/deploy:latest-php8.4-node22
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
# The prepare:ssh task fails on an empty ssh-agent, but building needs no
# server access, so satisfy it with a key that grants access to nothing.
- name: Generate a throwaway SSH key for the build
run: mkdir -p ~/.ssh && ssh-keygen -t ed25519 -N '' -q -f ~/.ssh/id_ed25519
- run: hypernode-deploy build -vvv
- name: archive build artifact
uses: actions/upload-artifact@v4
with:
name: deployment-build
path: build/build.tgz
retention-days: 5