Skip to content

Commit

Permalink
Use .netrc in docker release workflow (#5918)
Browse files Browse the repository at this point in the history
## Motivation

Follow up to #5821. Add `.netrc` creation to workflow for creating docker release images
  • Loading branch information
fasmat committed May 7, 2024
1 parent 93d3375 commit 47ac04a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ jobs:
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.GH_ACTION_PRIVATE_KEY }}

- uses: extractions/netrc@v2
with:
machine: github.com
username: ${{ secrets.GH_ACTION_TOKEN_USER }}
password: ${{ secrets.GH_ACTION_TOKEN }}
if: vars.GOPRIVATE

- name: Build docker images
run: |
export VERSION="${{ github.ref_name }}"
Expand Down

0 comments on commit 47ac04a

Please sign in to comment.