Fixy fixy
This commit is contained in:
parent
06b093362b
commit
d545d1e197
3 changed files with 5 additions and 4 deletions
5
.github/workflows/docker.build.yml
vendored
5
.github/workflows/docker.build.yml
vendored
|
|
@ -17,10 +17,11 @@ env:
|
||||||
CANDIDATE_IMAGE: ghcr.io/benzine-framework/bouncer:build-${{ github.sha }}
|
CANDIDATE_IMAGE: ghcr.io/benzine-framework/bouncer:build-${{ github.sha }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker-build:
|
||||||
name: Build Swarm Loadbalancer
|
name: Build Swarm Loadbalancer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: benzine-framework/action-get-datetime@v1.0.2
|
||||||
- uses: benzine-framework/action-setup-php@main
|
- uses: benzine-framework/action-setup-php@main
|
||||||
- uses: benzine-framework/action-setup-docker@main
|
- uses: benzine-framework/action-setup-docker@main
|
||||||
with:
|
with:
|
||||||
|
|
@ -39,7 +40,7 @@ jobs:
|
||||||
GIT_SHA=${{ github.sha }}
|
GIT_SHA=${{ github.sha }}
|
||||||
GIT_BUILD_ID=${{ github.ref_name }}
|
GIT_BUILD_ID=${{ github.ref_name }}
|
||||||
GIT_COMMIT_MESSAGE=${{ github.event.head_commit.message }}
|
GIT_COMMIT_MESSAGE=${{ github.event.head_commit.message }}
|
||||||
BUILD_DATE=${{ steps.date.outputs.container_build_datetime }}
|
BUILD_DATE=${{ env.ATOM }}
|
||||||
platforms: ${{ !env.ACT && env.PLATFORMS || 'linux/amd64' }}
|
platforms: ${{ !env.ACT && env.PLATFORMS || 'linux/amd64' }}
|
||||||
pull: true
|
pull: true
|
||||||
push: true
|
push: true
|
||||||
|
|
|
||||||
|
|
@ -21,13 +21,13 @@ lint:
|
||||||
- trufflehog # Trufflehog duplicates gitleaks functionality.
|
- trufflehog # Trufflehog duplicates gitleaks functionality.
|
||||||
- terrascan
|
- terrascan
|
||||||
- trivy
|
- trivy
|
||||||
|
- git-diff-check
|
||||||
enabled:
|
enabled:
|
||||||
- gitleaks@8.18.2
|
- gitleaks@8.18.2
|
||||||
- markdownlint@0.40.0
|
- markdownlint@0.40.0
|
||||||
- taplo@0.8.1
|
- taplo@0.8.1
|
||||||
- actionlint@1.7.0
|
- actionlint@1.7.0
|
||||||
- checkov@3.2.92
|
- checkov@3.2.92
|
||||||
- git-diff-check
|
|
||||||
- prettier@3.2.5
|
- prettier@3.2.5
|
||||||
- yamllint@1.35.1
|
- yamllint@1.35.1
|
||||||
definitions:
|
definitions:
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
$environment = array_merge($_ENV, $_SERVER);
|
$environment = array_merge($_ENV, $_SERVER);
|
||||||
$site = $environment['SITE_NAME'] ?? 'unknown';
|
$site = $environment['SITE_NAME'] ?? 'unknown';
|
||||||
$server = $environment['SERVER_NAME'] ?? gethostname();
|
$server = $environment['SERVER_NAME'] ?? gethostname();
|
||||||
printf('<h1>Website %s</h1><p>Running on %s</p>', $site, $server);
|
printf('<h1>Website %s</h1><p>Running on %s</p>', $site, $server);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue