Skip to content

Commit

Permalink
Update maven-make-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lindvarl authored Jun 19, 2024
1 parent 0d7acce commit 3fcf90a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/maven-make-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3fcf90a

Please sign in to comment.