This commit is contained in:
@@ -49,3 +49,16 @@ jobs:
|
|||||||
tags: | # replace it with your local IP and tags
|
tags: | # replace it with your local IP and tags
|
||||||
${{ vars.DOCKER_REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
${{ vars.DOCKER_REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
||||||
${{ vars.DOCKER_REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
|
${{ vars.DOCKER_REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
|
||||||
|
- name: Build and push StarCitizen
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
build-args: |
|
||||||
|
CONTENT_REPO=https://git.send.nrw/b1tsblog/sccontent.git
|
||||||
|
CONTENT_REF=main
|
||||||
|
platforms: |
|
||||||
|
linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: | # replace it with your local IP and tags
|
||||||
|
${{ vars.DOCKER_REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:sc-${{ env.DOCKER_LATEST }}
|
@@ -27,7 +27,7 @@ RUN git clone --depth 1 --branch ${CONTENT_REF} ${CONTENT_REPO} /src
|
|||||||
# • statische Seiten: /pages/* → /out/pages
|
# • statische Seiten: /pages/* → /out/pages
|
||||||
# (Pfad‑Anpassung hier nach DEINEM Repository‑Layout)
|
# (Pfad‑Anpassung hier nach DEINEM Repository‑Layout)
|
||||||
|
|
||||||
RUN mkdir -p /out/content /out/static /out/pages
|
RUN mkdir -p /out/content /out/static /out/pages /out/templates/
|
||||||
RUN find /src/articles -name '*.md' -exec cp {} /out/content/ \;
|
RUN find /src/articles -name '*.md' -exec cp {} /out/content/ \;
|
||||||
RUN cp -r /src/static/* /out/static/
|
RUN cp -r /src/static/* /out/static/
|
||||||
RUN cp -r /src/pages/* /out/pages/
|
RUN cp -r /src/pages/* /out/pages/
|
||||||
|
Reference in New Issue
Block a user