-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,30 +16,21 @@ on: | |
|
||
jobs: | ||
make-docker: | ||
#env: | ||
# DOCKER_REGISTRY_TOKEN: ${{ inputs.DOCKER_REGISTRY_TOKEN }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Test masking inputs | ||
- name: Masking inputs | ||
id: add_mask | ||
run: | | ||
INP_SECRET_TOKEN=$(jq -r '.inputs.DOCKER_REGISTRY_TOKEN' $GITHUB_EVENT_PATH) | ||
echo Before mask | ||
echo $INP_SECRET_TOKEN | ||
echo ::add-mask::$INP_SECRET_TOKEN | ||
echo After mask | ||
echo $INP_SECRET_TOKEN | ||
echo Setting output | ||
echo ::set-output name=secret_token::$INP_SECRET_TOKEN | ||
echo Setting environment variables | ||
echo SECRET_TOKEN="$INP_SECRET_TOKEN" >> $GITHUB_ENV | ||
echo DOCKER_REGISTRY_TOKEN="$INP_SECRET_TOKEN" >> $GITHUB_ENV | ||
- uses: actions/[email protected] | ||
|
||
- name: Docker login | ||
run: echo ${SECRET_TOKEN}| docker login ${{ inputs.DOCKER_REGISTRY }} --username ${{ inputs.DOCKER_REGISTRY_USER }} --password-stdin | ||
run: echo ${DOCKER_REGISTRY_TOKEN}| docker login ${{ inputs.DOCKER_REGISTRY }} --username ${{ inputs.DOCKER_REGISTRY_USER }} --password-stdin | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/[email protected] | ||
|