From 6a2e994105859ae6b265f55451cf6693406e2390 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 24 May 2024 19:31:35 +0300 Subject: [PATCH] Add Docker image workflow --- .github/workflows/docker-image.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..5dbc89c --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -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 }}