Add reusable container-login composite action for Forgejo registry
This commit is contained in:
parent
95b3f40dba
commit
c20001ce9f
1 changed files with 21 additions and 0 deletions
21
.forgejo/actions/container-login/action.yml
Normal file
21
.forgejo/actions/container-login/action.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: "Forgejo Container Registry Login"
|
||||
description: "Logs into the Forgejo container registry"
|
||||
inputs:
|
||||
registry:
|
||||
description: "Container registry hostname"
|
||||
required: false
|
||||
default: "git.mcintire.me"
|
||||
username:
|
||||
description: "Registry username"
|
||||
required: false
|
||||
default: "graham"
|
||||
token:
|
||||
description: "Forgejo access token with packages:read + packages:write scopes"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Login to Forgejo Container Registry
|
||||
shell: bash
|
||||
run: echo "${{ inputs.token }}" | docker login ${{ inputs.registry }} -u ${{ inputs.username }} --password-stdin
|
||||
Loading…
Add table
Reference in a new issue