Skip to content

Commit 8fbcbce

Browse files
authored
Merge branch 'develop' into develop
2 parents 5eebc72 + 1473bf9 commit 8fbcbce

File tree

12 files changed

+147
-112
lines changed

12 files changed

+147
-112
lines changed
File renamed without changes.
Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
#!/bin/ash
2-
## Ensure we are in /app
3-
42
cd /app
53

64
mkdir -p /var/log/panel/logs/ /var/log/supervisord/ /var/log/nginx/ /var/log/php7/ \
7-
&& rm -rf /app/storage/logs/ \
8-
&& chmod 777 /var/log/panel/logs/ \
9-
&& ln -s /var/log/panel/logs/ /app/storage/
5+
&& chmod 777 /var/log/panel/logs/ \
6+
&& ln -s /var/log/panel/logs/ /app/storage/logs/
107

118
## check for .env file and generate app keys if missing
129
if [ -f /app/var/.env ]; then
1310
echo "external vars exist."
1411
rm -rf /app/.env
15-
1612
ln -s /app/var/.env /app/
1713
else
1814
echo "external vars don't exist."
@@ -46,10 +42,10 @@ else
4642
echo "Checking if letsencrypt email is set."
4743
if [ -z $LE_EMAIL ]; then
4844
echo "No letsencrypt email is set using http config."
49-
cp docker/default.conf /etc/nginx/conf.d/default.conf
45+
cp .github/docker/default.conf /etc/nginx/conf.d/default.conf
5046
else
5147
echo "writing ssl config"
52-
cp docker/default_ssl.conf /etc/nginx/conf.d/default.conf
48+
cp .github/docker/default_ssl.conf /etc/nginx/conf.d/default.conf
5349
echo "updating ssl config for domain"
5450
sed -i "s|<domain>|$(echo $APP_URL | sed 's~http[s]*://~~g')|g" /etc/nginx/conf.d/default.conf
5551
echo "generating certs"
@@ -60,26 +56,19 @@ fi
6056
## check for DB up before starting the panel
6157
echo "Checking database status."
6258
until nc -z -v -w30 $DB_HOST 3306
63-
6459
do
6560
echo "Waiting for database connection..."
66-
# wait for 5 seconds before check again
67-
sleep 5
61+
# wait for 1 seconds before check again
62+
sleep 1
6863
done
6964

7065
## make sure the db is set up
7166
echo -e "Migrating and Seeding D.B"
72-
php artisan migrate --force
73-
php artisan db:seed --force
67+
php artisan migrate --seed --force
7468

7569
## start cronjobs for the queue
7670
echo -e "Starting cron jobs."
7771
crond -L /var/log/crond -l 5
7872

79-
## install yarn stuff
80-
yarn install --production
81-
yarn add cross-env
82-
yarn run build:production
83-
8473
echo -e "Starting supervisord."
8574
exec "$@"
File renamed without changes.

.github/workflows/docker.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Docker Image
2+
on:
3+
push:
4+
branches:
5+
- 'develop'
6+
tags:
7+
- 'v*'
8+
jobs:
9+
push_to_registry:
10+
name: Push Image to GitHub Packages
11+
runs-on: ubuntu-latest
12+
# Always run against a tag, even if the commit into the tag has [docker skip]
13+
# within the commit message.
14+
if: "!contains(github.ref, 'develop') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: crazy-max/ghaction-docker-meta@v1
18+
id: docker_meta
19+
with:
20+
images: ghcr.io/pterodactyl/panel
21+
- uses: docker/setup-qemu-action@v1
22+
- uses: docker/setup-buildx-action@v1
23+
- uses: docker/login-action@v1
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.repository_owner }}
27+
password: ${{ secrets.REGISTRY_TOKEN }}
28+
- name: Release Production Build
29+
uses: docker/build-push-action@v2
30+
if: "!contains(github.ref, 'develop')"
31+
with:
32+
push: true
33+
tags: ${{ steps.docker_meta.outputs.tags }}
34+
labels: ${{ steps.docker_meta.outputs.labels }}
35+
- name: Release Development Build
36+
uses: docker/build-push-action@v2
37+
if: "contains(github.ref, 'develop')"
38+
with:
39+
push: ${{ github.event_name != 'pull_request' }}
40+
tags: ${{ steps.docker_meta.outputs.tags }}
41+
labels: ${{ steps.docker_meta.outputs.labels }}

.github/workflows/release.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: "Release"
2-
1+
name: Create Release
32
on:
43
push:
54
tags:
65
- 'v*'
7-
86
jobs:
97
release:
108
runs-on: ubuntu-20.04
@@ -13,7 +11,7 @@ jobs:
1311
- uses: actions/setup-node@v1
1412
with:
1513
node-version: '12'
16-
14+
1715
- name: Create release branch and bump version
1816
env:
1917
REF: ${{ github.ref }}
@@ -32,7 +30,7 @@ jobs:
3230
run: |
3331
yarn install
3432
yarn run build:production
35-
33+
3634
- name: Create release archive
3735
run: |
3836
rm -rf node_modules/ test/ codecov.yml CODE_OF_CONDUCT.md CONTRIBUTING.md phpunit.dusk.xml phpunit.xml Vagrantfile
@@ -63,25 +61,25 @@ jobs:
6361
body_path: ./RELEASE_CHANGELOG
6462
draft: true
6563
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
66-
64+
6765
- name: Upload binary
6866
id: upload-release-archive
6967
uses: actions/upload-release-asset@v1
7068
env:
7169
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7270
with:
73-
upload_url: ${{ steps.create_release.outputs.upload_url }}
71+
upload_url: ${{ steps.create_release.outputs.upload_url }}
7472
asset_path: panel.tar.gz
7573
asset_name: panel.tar.gz
7674
asset_content_type: application/gzip
77-
75+
7876
- name: Upload checksum
79-
id: upload-release-checksum
77+
id: upload-release-checksum
8078
uses: actions/upload-release-asset@v1
8179
env:
8280
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8381
with:
84-
upload_url: ${{ steps.create_release.outputs.upload_url }}
82+
upload_url: ${{ steps.create_release.outputs.upload_url }}
8583
asset_path: ./checksum.txt
8684
asset_name: checksum.txt
8785
asset_content_type: text/plain

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: tests
1+
name: Run Test Suite
22
on:
33
push:
44
branch-ignore:
@@ -7,8 +7,8 @@ on:
77
pull_request:
88
jobs:
99
integration_tests:
10-
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
1110
runs-on: ubuntu-latest
11+
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
1212
services:
1313
mysql:
1414
image: mysql:5.7

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ This file is a running track of new features and fixes to each version of the pa
33

44
This project follows [Semantic Versioning](http://semver.org) guidelines.
55

6+
## v1.1.2
7+
### Fixed
8+
* Fixes an exception thrown while trying to validate IP access for the client API.
9+
* Fixes command history scrolling not putting the cursor at the end of the line.
10+
* Fixes file manager rows triggering a 404 when middle-clicked to open in a new tab.
11+
612
## v1.1.1
713
### Fixed
814
* Fixes allocation permissions checking on the frontend checking the wrong permission therefore leading to the item never showing up.

0 commit comments

Comments
 (0)