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 (linux/arm64) uses: docker/build-push-action@v5 with: context: . push: true platforms: linux/arm64 tags: | gitea.antonlyap.pp.ua/antonlyap/ffmpeg-min:6.1 gitea.antonlyap.pp.ua/antonlyap/ffmpeg-min:${{ github.sha }}