Skip to content

Commit

Permalink
get dockerhub creds from cloudtruth
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Warren committed Feb 23, 2024
1 parent 259f738 commit 0523882
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:

- uses: actions/checkout@v3

- name: Set docker login environment from cloudtruth
uses: cloudtruth/configure-action@v2
with:
apikey: "${{ secrets.CLOUDTRUTH_API_KEY }}"
project: "deploy"
environment: "production"

- name: Build image
run: |
export DOCKER_TAG=$(echo "${DOCKER_REPO}:${BUILD_TAG}")
Expand All @@ -36,8 +43,8 @@ jobs:
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ env.DOCKERHUB_PASSWORD }}

- name: Publish image to docker hub
run: |
Expand Down

0 comments on commit 0523882

Please sign in to comment.