refactor: docker stuff

This commit is contained in:
2026-05-15 12:27:31 +02:00
parent 5f6977dd8d
commit 1ec3f0a891
5 changed files with 13 additions and 19 deletions
+1
View File
@@ -1 +1,2 @@
IMAGE_TAG=latest
MAIN_PORT=8080 MAIN_PORT=8080
+4 -4
View File
@@ -51,11 +51,11 @@ jobs:
push: true push: true
provenance: false provenance: false
build-args: | build-args: |
APP_VERSION=${{ steps.version.outputs.value }} APP_VERSION=${{ github.sha }}
VCS_REF=${{ github.sha }} VCS_REF=${{ github.run_number }}
tags: | tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev
labels: | labels: |
org.opencontainers.image.version=${{ steps.version.outputs.value }} org.opencontainers.image.version=${{ github.sha }}
org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.revision=${{ github.run_number }}
org.opencontainers.image.source=https://github.com/${{ github.repository }} org.opencontainers.image.source=https://github.com/${{ github.repository }}
+4 -5
View File
@@ -57,14 +57,13 @@ jobs:
push: true push: true
provenance: false provenance: false
build-args: | build-args: |
APP_VERSION=${{ steps.version.outputs.value }} APP_VERSION=${{ github.sha }}
VCS_REF=${{ github.sha }} VCS_REF=${{ github.run_number }}
tags: | tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.docker_tag }}
labels: | labels: |
org.opencontainers.image.version=${{ steps.version.outputs.value }} org.opencontainers.image.version=${{ github.sha }}
org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.revision=${{ github.run_number }}
org.opencontainers.image.source=https://github.com/${{ github.repository }} org.opencontainers.image.source=https://github.com/${{ github.repository }}
- name: Create GitHub release - name: Create GitHub release
+2 -2
View File
@@ -1,10 +1,10 @@
FROM nginx:1.27-alpine FROM nginx:1.27-alpine
ARG APP_VERSION=0.0.0
ARG VCS_REF=unknown ARG VCS_REF=unknown
ARG APP_VERSION=unknown
LABEL org.opencontainers.image.title="MaintenanceWebsite" LABEL org.opencontainers.image.title="MaintenanceWebsite"
LABEL org.opencontainers.image.description="Static maintenance website" LABEL org.opencontainers.image.description="❌ A simple HTML/CSS/JS maintenance website. "
LABEL org.opencontainers.image.version="${APP_VERSION}" LABEL org.opencontainers.image.version="${APP_VERSION}"
LABEL org.opencontainers.image.revision="${VCS_REF}" LABEL org.opencontainers.image.revision="${VCS_REF}"
LABEL org.opencontainers.image.source="https://github.com/Lechner-Systems/MaintenanceWebsite" LABEL org.opencontainers.image.source="https://github.com/Lechner-Systems/MaintenanceWebsite"
+1 -7
View File
@@ -1,13 +1,7 @@
services: services:
portfolio: maintenance:
image: docker.lechner-systems.at/lechnersystems/maintenance:${IMAGE_TAG:-latest} image: docker.lechner-systems.at/lechnersystems/maintenance:${IMAGE_TAG:-latest}
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped restart: unless-stopped
env_file:
- path: .env
required: false
dns: dns:
- 192.168.100.2 - 192.168.100.2
- 192.168.100.6 - 192.168.100.6