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 }}