Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Sep 27, 2024
1 parent 510b8ec commit 38ac480
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ inputs:
action_path:
description: 'Path to the requirements file'
required: true
hub_username:
description: Username for Docker Hub
default: ${{ github.actor }}
required: true
hub_password:
description: Docker Hub authentication token
required: true
hub_token:
description: Docker Hub authentication token
required: true

runs:
using: composite
Expand Down Expand Up @@ -58,6 +68,12 @@ runs:
if [ $? -eq 0 ]; then exit 1; fi
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ inputs.hub_username }}
password: ${{ inputs.hub_token }}

- uses: actions/setup-python@v5
if: runner.os != 'Windows'
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/actions/1-ubuntu/1-maps/2-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ outputs:
runs:
using: composite
steps:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ inputs.hub_username }}
password: ${{ inputs.hub_token }}

- name: 🚀 Initiate Lexer
uses: devcontainers/[email protected]
with:
Expand Down

0 comments on commit 38ac480

Please sign in to comment.