Skip to content

Merge remote-tracking branch 'origin/main' into deploy #4

Merge remote-tracking branch 'origin/main' into deploy

Merge remote-tracking branch 'origin/main' into deploy #4

name: Deploys
on:
push:
branches:
- deploy
jobs:
deploy:
name: Deploy Docker images
runs-on: ubuntu-latest
env:
NAMESPACE: ${{secrets.DOCKER_HUB_NAMESPACE}}
DOCKER_USERNAME: ${{secrets.DOCKER_HUB_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_HUB_TOKEN}}
VERSION: '6.1'
BASED_OS: 'ubuntu2204'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Docker login
uses: nick-invision/retry@v2.9.0
with:
timeout_minutes: 5
max_attempts: 3
command: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- name: Build image
uses: nick-invision/retry@v2.9.0
with:
timeout_minutes: 60
max_attempts: 3
command: cd docker-images/$VERSION/$BASED_OS; docker build . -t $NAMESPACE/ffmpeg:$VERSION-$BASED_OS
- name: Push image
uses: nick-invision/retry@v2.9.0
with:
timeout_minutes: 10
max_attempts: 3
command: docker push $NAMESPACE/ffmpeg:$VERSION-$BASED_OS