name: Docker Build on: push: workflow_dispatch: env: REGISTRY: ghcr.io jobs: build-and-push: runs-on: ubuntu-latest permissions: contents: write packages: write steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: 0 - name: Log in to the Container registry uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build and push Backend Docker image uses: docker/build-push-action@v4 with: context: . file: Dockerfile push: true tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/fdroid-reposerver:latest