Skip to content

base:ffmpeg-cuda-ubuntu #8

base:ffmpeg-cuda-ubuntu

base:ffmpeg-cuda-ubuntu #8

name: "base:ubuntu-ffmpeg-cuda"
on:
workflow_dispatch:
push:
branches-ignore:
- "**"
jobs:
docker:
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: cardinalby/export-env-action@v1
with:
envFile: "Build.ubuntu.env"
export: "true"
expandWithJobEnv: "true"
expand: "true"
- uses: cardinalby/export-env-action@v1
with:
envFile: "Build.ubuntu.cuda.env"
export: "true"
expandWithJobEnv: "true"
expand: "true"
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Multi-Arch
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile.ubuntu.cuda
build-args: |
BUILD_IMAGE=nvidia/cuda:${{ env.CUDA_VERSION }}-devel-${{ env.OS_NAME }}${{ env.OS_VERSION }}
DEPLOY_IMAGE=nvidia/cuda:${{ env.CUDA_VERSION }}-runtime-${{ env.OS_NAME }}${{ env.OS_VERSION }}
FFNVCODEC_VERSION=${{ env.FFNVCODEC_VERSION }}
FREETYPE_VERSION=${{ env.FREETYPE_VERSION }}
XML2_VERSION=${{ env.XML2_VERSION }}
SRT_VERSION=${{ env.SRT_VERSION }}
X264_VERSION=${{ env.X264_VERSION }}
X265_VERSION=${{ env.X265_VERSION }}
VPX_VERSION=${{ env.VPX_VERSION }}
LAME_VERSION=${{ env.LAME_VERSION }}
OPUS_VERSION=${{ env.OPUS_VERSION }}
OGG_VERSION=${{ env.OGG_VERSION }}
VORBIS_VERSION=${{ env.VORBIS_VERSION }}
FFMPEG_VERSION=${{ env.FFMPEG_VERSION }}
platforms: linux/amd64
push: true
tags: |

Check failure on line 77 in .github/workflows/build_base_ubuntu-cuda.yaml

View workflow run for this annotation

GitHub Actions / base:ubuntu-ffmpeg-cuda

Invalid workflow file

The workflow is not valid. .github/workflows/build_base_ubuntu-cuda.yaml (Line: 77, Col: 17): Unexpected symbol: '}-cuda-${{'. Located at position 20 within expression: env.FFMPEG_VERSION }-cuda-${{ env.OS_NAME
datarhei/base:ffmpeg${{ env.FFMPEG_VERSION }-cuda-${{ env.OS_NAME }}${{ env.OS_VERSION }}-cuda${{ env.CUDA_VERSION }}
datarhei/base:${{ env.OS_NAME }}-ffmpeg-cuda-${{ env.OS_VERSION }}-${{ env.FFMPEG_VERSION }}-${{ env.CUDA_VERSION }}
datarhei/base:${{ env.OS_NAME }}-ffmpeg-cuda-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new