Compare commits

...

10 Commits

Author SHA1 Message Date
abb7a971d6 .gitea/workflows/release.yml aktualisiert
All checks were successful
Build stuck web image / Build-and-release-image (push) Successful in 1m18s
2025-04-01 13:53:30 +02:00
e0b19bc496 Use secrets and security check for workflow. 2025-03-20 16:54:35 +01:00
460cebcf93 Use new 8.4 image 2025-03-20 16:14:54 +01:00
0764631d16 Cleanup workflow. 2025-03-18 11:39:11 +01:00
4c45fc88a6 Use gitea package registry. 2025-03-18 11:36:56 +01:00
4985700a67 Use nginx-fpm image. 2022-10-04 06:15:24 +02:00
796924b3da Change upgrade commands. 2022-10-04 05:21:08 +02:00
94746d96fd Run debian update for security fixes. 2022-10-04 05:19:18 +02:00
Christian Steinle
38a794282f Remove ide working directory from version control. 2022-09-13 12:09:12 +02:00
Christian Steinle
16782ba8da Code formatting and align navigation links. 2022-09-13 12:05:38 +02:00
5 changed files with 207 additions and 145 deletions

View File

@@ -1,19 +0,0 @@
kind: pipeline
name: default
steps:
- name: build container
image: plugins/docker
settings:
dockerfile: Dockerfile
username:
from_secret: registry-username
password:
from_secret: registry-password
registry: https://cs-registry.ddnss.de
repo: cs-registry.ddnss.de/${DRONE_REPO_OWNER}/huber-putz
dry_run: false
purge: false
insecure: false
tags:
- ${DRONE_TAG}

View File

@@ -0,0 +1,78 @@
name: Build stuck web image
on:
push:
branches: [ master ]
schedule:
# Run every Sunday at midnight
- cron: '0 0 * * 0'
env:
IMAGE: /huber/stuck-web
jobs:
Build-and-release-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USER }}
password: ${{ vars.DOCKERHUB_TOKEN }}
- name: Log into CS registry
uses: docker/login-action@v3
with:
registry: ${{ vars.CS_REGISTRY_URL }}
username: ${{ vars.CS_REGISTRY_USER }}
password: ${{ vars.CS_REGISTRY_PASS }}
- name: Log into local registry
uses: docker/login-action@v3
with:
registry: ${{ vars.LOCAL_REGISTRY_URL }}
username: ${{ vars.LOCAL_REGISTRY_USER }}
password: ${{ vars.LOCAL_REGISTRY_PASS }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
push: true
- name: Scan image
uses: anchore/scan-action@v6
id: scan
with:
image: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
fail-build: false
output-format: table
severity-cutoff: critical
registry-username: ${{ vars.LOCAL_REGISTRY_USER }}
registry-password: ${{ vars.LOCAL_REGISTRY_PASS }}
grype-version: 'v0.90.0'
- name: Inspect file
run: cat ${{ steps.scan.outputs.table }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: scan-result
path: ${{ steps.scan.outputs.table }}

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea/

View File

@@ -1,3 +1,3 @@
FROM php:8.1-apache FROM cs-git.ddnss.de/docker/nginx-fpm-8-4
COPY . /var/www/html COPY . /var/www/html

View File

@@ -114,6 +114,7 @@ img{
height: 23px; height: 23px;
padding-top: 7px; padding-top: 7px;
padding-left: 20px; padding-left: 20px;
text-align: left;
} }
#links li.level2 { #links li.level2 {
@@ -174,6 +175,7 @@ img.rechts {
img.referenz { img.referenz {
padding: 0 0 0 0; padding: 0 0 0 0;
} }
#clear { #clear {
overflow: hidden; overflow: hidden;
clear: left; clear: left;