Skip to content

Commit

Permalink
add secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
benlee0423 committed Jan 3, 2024
1 parent 5ec78f0 commit 9840c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/docker_deps_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
tag_name:
required: true
type: string
docker-auth-token:
required: true
type: string
jobs:
build-and-push:
runs-on: self-hosted
Expand All @@ -26,7 +23,7 @@ jobs:
- name: Build and push Docker image
uses: ./.github/action_templates/build-and-push
with:
docker-auth-token: ${{inputs.docker-auth-token}}
docker-auth-token: ${{ secrets.DOCKER_AUTH_TOKEN }}
github-sha: ${{ github.sha }}
image-name: "ngen-deps"
dockerfile-name: "Dockerfile.ngen-deps"
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docker_image_main_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
uses: ./.github/workflows/docker_deps_image.yml
with:
tag_name: ${{inputs.tag_name}}
docker-auth-token: ${{ env.docker-auth-token }}
env:
docker-auth-token: ${{ secrets.DOCKER_AUTH_TOKEN }}
secrets:
DOCKER_AUTH_TOKEN: ${{ secrets.DOCKER_AUTH_TOKEN }}
troute:
needs: deps
uses: ./.github/workflows/docker_troute_image.yml
Expand Down

0 comments on commit 9840c99

Please sign in to comment.