Files
ffmpegd/.github/workflows/docker.yml

18 lines
498 B
YAML

name: Docker Image Push
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build the Docker image
run: |
docker login ghcr.io --username $GITHUB_ACTOR --password ${{ secrets.CR_TOKEN }}
docker build . --file Dockerfile --tag ghcr.io/alfg/ffmpegd:${GITHUB_REF/refs\/tags\//}
docker push ghcr.io/alfg/ffmpegd:latest
docker push ghcr.io/alfg/ffmpegd:${GITHUB_REF/refs\/tags\//}