Skip to content

Commit

Permalink
fix: use token to login to docker hub (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmihir authored Aug 8, 2024
1 parent 76e366b commit dbc7d14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-onto-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# tagFormat: v${version}
# failBuild: true
- run: |
docker login --username rudderlabs --password '${{ secrets.DOCKER_HUB_PASSWORD }}'
docker login --username rudderlabs --password '${{ secrets.DOCKERHUB_TOKEN }}'
export VERSION=${{ steps.branch-name.outputs.current_branch }}
rm -rf rudder-alerta-enrichment-plugin
git config --global url."https://${{secrets.PAT}}:x-oauth-basic@github.com/rudderlabs".insteadOf "https://github.com/rudderlabs"
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/pr-onto-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,3 @@ jobs:
file: package.json
tagFormat: v${version}
failBuild: true
# - run: |
# docker login --username rudderlabs --password '${{ secrets.DOCKER_HUB_PASSWORD }}'
# export VERSION=${{ steps.branch-name.outputs.current_branch }}
# rm -rf rudder-alerta-enrichment-plugin
# git clone -b "$(cat RUDDER_ENRICH_PLUGIN_BRANCH_NAME)" git@github.com:rudderlabs/rudder-alerta-enrichment-plugin.git
# docker build --no-cache --build-arg=COMMIT_ID_VALUE="$(git log --format="%H" -n 1)" -t rudderlabs/alerta:$VERSION .
# docker push rudderlabs/alerta:$VERSION
# rm -rf rudder-alerta-enrichment-plugin
# name: Docker build and push
2 changes: 1 addition & 1 deletion .github/workflows/push-onto-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
failBuild: true
id: version_check_staging
- run: |
docker login --username rudderlabs --password '${{ secrets.DOCKER_HUB_PASSWORD }}'
docker login --username rudderlabs --password '${{ secrets.DOCKERHUB_TOKEN }}'
export VERSION=${{steps.version_check_staging.outputs.releaseVersion}}
rm -rf rudder-alerta-enrichment-plugin
git config --global url."https://${{secrets.PAT}}:x-oauth-basic@github.com/rudderlabs".insteadOf "https://github.com/rudderlabs"
Expand Down

0 comments on commit dbc7d14

Please sign in to comment.