Add Docker image workflow
Some checks failed
Publish Docker image / Push Docker image to the registry (push) Failing after 52s

This commit is contained in:
Anton Liaposhchenko 2024-05-24 19:31:35 +03:00
parent fd1dc2cd55
commit 6a2e994105

32
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Publish Docker image
on:
push:
branches: [main]
jobs:
push_to_registry:
name: Push Docker image to the registry
runs-on: ubuntu-22.04
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: gitea.antonlyap.pp.ua
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: |
linux/arm64
linux/amd64
tags: |
gitea.antonlyap.pp.ua/antonlyap/ffmpeg-min:6.1
gitea.antonlyap.pp.ua/antonlyap/ffmpeg-min:${{ github.sha }}