commit 8b17abf8ffea2ff361c7d489e8596d1aadcf14db Author: tomoron Date: Fri Jan 30 13:51:26 2026 +0100 initial commit diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..e662d04 --- /dev/null +++ b/action.yml @@ -0,0 +1,29 @@ +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