fix daily-docker.yml
This commit is contained in:
@@ -22,6 +22,8 @@ jobs:
|
||||
steps:
|
||||
- name: 📥 Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 🔍 Auf VDO.Ninja Updates prüfen
|
||||
id: check
|
||||
@@ -68,25 +70,26 @@ jobs:
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: 🛠️ Docker Buildx einrichten
|
||||
if: steps.check.outputs.should_build == 'true'
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: 🏗️ Docker Image bauen und pushen
|
||||
if: steps.check.outputs.should_build == 'true'
|
||||
run: |
|
||||
IMAGE_LATEST="${{ steps.check.outputs.registry }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:latest"
|
||||
IMAGE_TAG="${{ steps.check.outputs.registry }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:${{ steps.check.outputs.upstream_tag }}"
|
||||
|
||||
docker build \
|
||||
--label "org.opencontainers.image.title=VDO.Ninja" \
|
||||
--label "org.opencontainers.image.description=Self-hosted VDO.Ninja - Free browser-based peer-to-peer video streaming" \
|
||||
--label "org.opencontainers.image.version=${{ steps.check.outputs.upstream_tag }}" \
|
||||
--label "org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}" \
|
||||
--label "org.opencontainers.image.upstream=https://github.com/steveseguin/vdo.ninja" \
|
||||
--label "org.opencontainers.image.licenses=AGPL-3.0" \
|
||||
-t "${IMAGE_LATEST}" \
|
||||
-t "${IMAGE_TAG}" \
|
||||
.
|
||||
|
||||
docker push "${IMAGE_LATEST}"
|
||||
docker push "${IMAGE_TAG}"
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ steps.check.outputs.registry }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:latest
|
||||
${{ steps.check.outputs.registry }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:${{ steps.check.outputs.upstream_tag }}
|
||||
labels: |
|
||||
org.opencontainers.image.title=VDO.Ninja
|
||||
org.opencontainers.image.description=Self-hosted VDO.Ninja - Free browser-based peer-to-peer video streaming
|
||||
org.opencontainers.image.version=${{ steps.check.outputs.upstream_tag }}
|
||||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
||||
org.opencontainers.image.upstream=https://github.com/steveseguin/vdo.ninja
|
||||
org.opencontainers.image.licenses=AGPL-3.0
|
||||
|
||||
- name: 📊 Build-Zusammenfassung
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user