# Automatic image build and upload workflow # It does not run on actions-docker: # 1. to avoid issues, and # 2. because we don't need it. name: upload on: - push jobs: upload: runs-on: docker steps: - name: Build container uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v1 with: forgejo: "${{ env.GITHUB_SERVER_URL }}" owner: "${{ env.GITHUB_REPOSITORY_OWNER }}" repository: "${{ steps.repository.outputs.value }}" doer: "${{ secrets.REGISTRY_USERNAME }}" token: "${{ secrets.REGISTRY_TOKEN }}" tag-version: "latest" platforms: linux/amd64 binary-name: sh binary-path: /bin/sh dockerfile: Dockerfile - name: Publish container uses: https://code.forgejo.org/forgejo/forgejo-build-publish/publish@v1 with: from-forgejo: "${{ env.GITHUB_SERVER_URL }}" from-owner: "${{ env.GITHUB_REPOSITORY_OWNER }}" to-forgejo: "${{ env.GITHUB_SERVER_URL }}" to-owner: "${{ env.GITHUB_REPOSITORY_OWNER }}" to-doer: "${{ secrets.REGISTRY_USERNAME }}" to-token: "${{ secrets.REGISTRY_TOKEN }}"