initial commit
This commit is contained in:
29
action.yml
Normal file
29
action.yml
Normal file
@ -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
|
||||||
Reference in New Issue
Block a user