Skip to content

Commit

Permalink
Workflow: Configure env map to take secrets from there instead of rep…
Browse files Browse the repository at this point in the history
…o level
  • Loading branch information
Paletrox-Z committed Feb 27, 2024
1 parent e33c4c7 commit c986cef
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:

runs-on: ubuntu-latest

environment:
name: CoursePlanner_Env

env:
DH_UNAME: ${{ secrets.DH_UNAME }}
DH_TOKEN: ${{ secrets.DH_TOKEN }}

steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
Expand All @@ -33,8 +40,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DH_UNAME }}
password: ${{ secrets.DH_TOKEN }}
username: ${{ env.DH_UNAME }}
password: ${{ env.DH_TOKEN }}

- name: Build Image and Push
uses: docker/build-push-action@v2
Expand Down

0 comments on commit c986cef

Please sign in to comment.