name: docker setup and build author: tom descriptions: setup, login, builds and pushes a container as a package inputs: path: description: 'the path where buildx should start' required: false default: '.' name: desciption: 'name of the package' required: false default: '${{ gitea.repository }}' runs: using: "composite" steps: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub uses: docker/login-action@v2 with: registry: git.tmoron.fr username: ${{ secrets.PUSH_USERNAME }} password: ${{ secrets.PUSH_PASSWORD }} - name: Build and push uses: docker/build-push-action@v4 with: context: ${{ inputs.path }} push: true tags: git.tmoron.fr/${{ inputs.name }}:latest