Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6418e84257
|
|||
|
f538683ab2
|
13
action.yml
13
action.yml
@ -1,3 +1,6 @@
|
|||||||
|
name: docker setup and build
|
||||||
|
author: tom
|
||||||
|
descriptions: setup, login, builds and pushes a container as a package
|
||||||
inputs:
|
inputs:
|
||||||
path:
|
path:
|
||||||
description: 'the path where buildx should start'
|
description: 'the path where buildx should start'
|
||||||
@ -7,6 +10,12 @@ inputs:
|
|||||||
desciption: 'name of the package'
|
desciption: 'name of the package'
|
||||||
required: false
|
required: false
|
||||||
default: '${{ gitea.repository }}'
|
default: '${{ gitea.repository }}'
|
||||||
|
username:
|
||||||
|
description: 'username used to push the package'
|
||||||
|
required: true
|
||||||
|
password:
|
||||||
|
description: 'password used to push the package'
|
||||||
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@ -18,8 +27,8 @@ runs:
|
|||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: git.tmoron.fr
|
registry: git.tmoron.fr
|
||||||
username: ${{ secrets.PUSH_USERNAME }}
|
username: ${{ inputs.username }}
|
||||||
password: ${{ secrets.PUSH_PASSWORD }}
|
password: ${{ inputs.password }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user