Skip to content

Commit

Permalink
Added GA key to ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkim312 committed May 7, 2024
1 parent a706530 commit 5e38046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ jobs:
done
echo "VERSION=${version}" >> $GITHUB_ENV
echo "TAGS=${tags}" >> $GITHUB_ENV
GA_KEY="${{ secrets.GA_KEY }}"
elif [ "$BRANCH" == "develop" ]; then
echo "VERSION=develop" >> $GITHUB_ENV
echo "TAGS=develop" >> $GITHUB_ENV
GA_KEY="${{ secrets.GA_KEY }}"
else
echo "VERSION=testing" >> $GITHUB_ENV
echo "TAGS=${BRANCH}" >> $GITHUB_ENV
fi
echo "GA_KEY=${GA_KEY}" >> $GITHUB_ENV
# build image
- name: Build image
Expand All @@ -65,13 +68,14 @@ jobs:
VERSION: ${{ env.VERSION }}
BUILDNUMBER: ${{ github.run_number }}
GITSHA1: ${{ github.sha }}
GA_KEY: ${{ env.GA_KEY }}
with:
registry: hub.ncsa.illinois.edu
name: incore/doc/pyincore-viz
#username: ${{ secrets.HUB_USERNAME }}
#password: ${{ secrets.HUB_PASSWORD }}
tags: "${{ env.TAGS }}"
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1,GA_KEY
no_push: true

# this will publish to NCSA
Expand Down

0 comments on commit 5e38046

Please sign in to comment.