Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
Made secret optional for build pipeline
  • Loading branch information
iosdev747 authored Aug 8, 2024
1 parent 0cd7f56 commit 6ad442b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
type: string
default: $(date +%s)
required: true
secrets:
dockerHubToken:
required: false

jobs:

Expand All @@ -39,6 +42,6 @@ jobs:
if: ${{ inputs.pushToDockerHub }} == true
- name: Push to DockerHub
run: |
docker login -u varadhi -p ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
docker login -u varadhi -p ${{ secrets.dockerHubToken }}
docker push varadhi/varadhi:${{ inputs.releaseVersion }}

0 comments on commit 6ad442b

Please sign in to comment.