Browse Source

add ghcr login

Cliff Colvin 2 years ago
parent
commit
93bdc872f9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      .github/workflows/build-and-publish-release.yml

+ 5 - 0
.github/workflows/build-and-publish-release.yml

@@ -42,6 +42,11 @@ jobs:
           pushd ./opencost
           echo "OC_SHORTHASH=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
           popd
+      
+      - name: Login to GHCR
+        id: ghcr
+        run: |
+          run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
 
       - name: Set OpenCost Image Tags
         id: tags