fix(ci): add MIT license and required Zot annotations
Build and Publish Docker Image / build-and-push (push) Successful in 1m5s
Build and Publish Docker Image / build-and-push (push) Successful in 1m5s
This commit is contained in:
1 parent
fa2ac93548
commit
7926de3b72
6 files changed
+39
-8
No files matched your search
@@ -14,15 +14,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to Zot Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: registry.br0tkasten.de
|
registry: registry.br0tkasten.de
|
||||||
username: runner
|
username: runner
|
||||||
# access token of the user triggering this action
|
# Zot credentials for runner, stored in the Gitea Actions secret TOKEN.
|
||||||
# in gitea -> user settings -> applications -> new token -> write:packages and write:repositories
|
password: ${{ secrets.TOKEN }}
|
||||||
# then in gitea -> user settings -> actions -> secrets -> add new secret named "TOKEN" with the value of the access token.
|
|
||||||
password: ${{ secrets.TOKEN }}
|
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
@@ -40,8 +41,11 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
outputs: type=registry,oci-mediatypes=true
|
||||||
# Compatibility workaround for registry manifest rejection with attestations.
|
# Keep a single image manifest with the annotations required by Zot's linter.
|
||||||
provenance: false
|
provenance: false
|
||||||
|
annotations: |
|
||||||
|
manifest:org.opencontainers.image.vendor=br0tkasten.de
|
||||||
|
manifest:org.opencontainers.image.licenses=MIT
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
@@ -30,6 +30,7 @@ This file summarizes the project's git history in short, readable steps.
|
|||||||
|
|
||||||
## Recent Enhancements
|
## Recent Enhancements
|
||||||
|
|
||||||
|
- Added the MIT license for br0tkasten.de, included it in the runtime image, and configured OCI manifest annotations and Buildx for Zot's required vendor and license checks.
|
||||||
- Disabled default build provenance attestations as a workaround for manifest rejection when publishing to the external Zot registry.
|
- Disabled default build provenance attestations as a workaround for manifest rejection when publishing to the external Zot registry.
|
||||||
- `efddb34`: Hid the fullscreen navigation arrows on mobile and kept swipe navigation in chronological order.
|
- `efddb34`: Hid the fullscreen navigation arrows on mobile and kept swipe navigation in chronological order.
|
||||||
- `99f9f64`: Added a fullscreen download button and changed the light-mode caption color back to `#303030`.
|
- `99f9f64`: Added a fullscreen download button and changed the light-mode caption color back to `#303030`.
|
||||||
|
|||||||
+4
-1
@@ -10,12 +10,15 @@ RUN npm run build
|
|||||||
|
|
||||||
FROM node:current-alpine AS runtime
|
FROM node:current-alpine AS runtime
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.vendor="br0tkasten.de" \
|
||||||
|
org.opencontainers.image.licenses="MIT"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
|
|
||||||
COPY package.json ./
|
COPY package.json LICENSE ./
|
||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 br0tkasten.de
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
Generated
+1
@@ -7,6 +7,7 @@
|
|||||||
"": {
|
"": {
|
||||||
"name": "mapix",
|
"name": "mapix",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"exifr": "^7.1.3",
|
"exifr": "^7.1.3",
|
||||||
"leaflet": "^1.9.4"
|
"leaflet": "^1.9.4"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"name": "mapix",
|
"name": "mapix",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.json && node dist/shared/copy-vendor-assets.js",
|
"build": "tsc -p tsconfig.json && node dist/shared/copy-vendor-assets.js",
|
||||||
|
|||||||
Reference in new issue
Block a user