Skip to content

Commit 369c51f

Browse files
authored
Merge pull request #49 from ByteInternet/add_brancher_labels_and_acceptance_cleanup
2 parents c8e7a4c + 7f5688f commit 369c51f

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Cleanup acceptance environments
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
cleanup:
9+
runs-on: ubuntu-latest
10+
container: quay.io/hypernode/deploy:3-php8.1-node18
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Cleanup acceptance environments
14+
run: hypernode-deploy cleanup acceptance -vvv
15+
env:
16+
HYPERNODE_API_TOKEN: ${{ secrets.HYPERNODE_API_TOKEN }}

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to acceptance server
1+
name: Deploy application
22

33
on:
44
pull_request:

deploy.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
$dockerStage->addServer($DOCKER_HOST);
104104

105105
$testingStage = $configuration->addStage("acceptance", "docs");
106-
$testingStage->addBrancherServer("hntestgroot");
106+
$testingStage->addBrancherServer("hntestgroot")
107+
->setLabels(['stage=acceptance', 'ci_ref=' . (\getenv('GITHUB_REF') ?: 'none')]);
107108

108109
return $configuration;

0 commit comments

Comments
 (0)