Compare commits
5 Commits
3467ab8e9a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4c9d41c76c | |||
| c08576b2dd | |||
| 4feb0fc2f8 | |||
| 561841fba8 | |||
| 460d34325b |
@@ -21,6 +21,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
buildkitd-flags: '--allow-insecure-entitlement network.host'
|
||||||
|
driver-opts: network=host
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -49,10 +52,12 @@ jobs:
|
|||||||
images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}
|
images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v6
|
||||||
env:
|
env:
|
||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
|
allow: network.host
|
||||||
|
network: host
|
||||||
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
|
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
@@ -66,7 +71,6 @@ jobs:
|
|||||||
severity-cutoff: critical
|
severity-cutoff: critical
|
||||||
registry-username: ${{ vars.LOCAL_REGISTRY_USER }}
|
registry-username: ${{ vars.LOCAL_REGISTRY_USER }}
|
||||||
registry-password: ${{ vars.LOCAL_REGISTRY_PASS }}
|
registry-password: ${{ vars.LOCAL_REGISTRY_PASS }}
|
||||||
grype-version: 'v0.90.0'
|
|
||||||
|
|
||||||
- name: Inspect file
|
- name: Inspect file
|
||||||
run: cat ${{ steps.scan.outputs.table }}
|
run: cat ${{ steps.scan.outputs.table }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:3.21
|
||||||
LABEL Maintainer="Christian Steinle <kontakt@steinle-computer.de>"
|
LABEL Maintainer="Christian Steinle <kontakt@steinle-computer.de>"
|
||||||
LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.2 based on Alpine Linux."
|
LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.2 based on Alpine Linux."
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
sed -i "s|/var/www/html|/var/www/html${SERVE_PATH}|g" /etc/nginx/nginx.conf
|
sed -i "s|/var/www/html;|/var/www/html${SERVE_PATH};|g" /etc/nginx/nginx.conf
|
||||||
|
|
||||||
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user