Skip to content

Commit

Permalink
fix: Allow no token to be passed in (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder authored May 29, 2024
1 parent b2d976c commit c4592d4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ inputs:
The token used to sign into the container registry.
Example: `${{ github.token }}`
required: true
required: false
default: ''
registry_username:
description: |
The username used to sign into the container registry.
required: false
default: ${{ github.repository_owner }}
pr_event_number:
description: |
The event number used to tag images pushed from pull requests.
Expand Down Expand Up @@ -153,6 +159,10 @@ runs:
env:
COSIGN_PRIVATE_KEY: ${{ inputs.cosign_private_key }}
GH_TOKEN: ${{ inputs.registry_token }}
BB_PASSWORD: ${{ inputs.registry_token }}
BB_USERNAME: ${{ inputs.registry_username }}
BB_REGISTRY: ${{ inputs.registry }}
BB_REGISTRY_NAMESPACE: ${{ inputs.registry_namespace }}
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
BB_BUILDKIT_CACHE_GHA: ${{ inputs.use_cache }}
RECIPE_PATH: ${{ steps.build_vars.outputs.recipe_path }}
Expand All @@ -165,6 +175,4 @@ runs:
BUILD_OPTS="--build-driver podman --squash $BUILD_OPTS"
fi
bluebuild build -v --push ${BUILD_OPTS} ${RECIPE_PATH} \
--registry ${{inputs.registry}} \
--registry-namespace ${{inputs.registry_namespace}}
bluebuild build -v --push ${BUILD_OPTS} ${RECIPE_PATH}

0 comments on commit c4592d4

Please sign in to comment.