Skip to content

Commit

Permalink
trying passing req secrets through inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Mar 22, 2024
1 parent ea0475c commit 163c413
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/common_setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: 'Common Setup'
description: 'Common setup steps for build related workflows'
inputs: # Seems we can't use secrets in action.yml
DOCKER_USER:
description: 'Docker Hub username'
required: true
DOCKER_TOKEN:
description: 'Docker Hub password'
required: true
runs:
using: 'composite'
steps:
Expand All @@ -12,5 +19,5 @@ runs:
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ inputs.DOCKER_USER }}
password: ${{ inputs.DOCKER_TOKEN }}

0 comments on commit 163c413

Please sign in to comment.