mirror of
https://github.com/alfg/ffmpegd.git
synced 2025-12-24 13:17:53 +08:00
18 lines
498 B
YAML
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\//} |