Skip to content

Commit

Permalink
Merge pull request kubesphere#28 from LinuxSuRen/gitpod-improve
Browse files Browse the repository at this point in the history
Add docker login and gh repo fork
  • Loading branch information
LinuxSuRen authored Aug 10, 2021
2 parents 070dee5 + 974b8e1 commit e96b79e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ image:

tasks:
- init: |
[[ ! -z "${DOCKER_USER}" && ! -z "${DOCKER_PASSWD}" ]] && docker login -u${DOCKER_USER} -p${DOCKER_PASSWD}
[[ ! -z "${GITHUB_USER}" && ! -z "${GITHUB_TOKEN}" ]] && docker login ghcr.io -u${GITHUB_USER} -p${GITHUB_TOKEN}
git config --global user.name $GIT_AUTHOR_NAME
git config --global user.email $GIT_COMMITTER_EMAIL
gh repo fork --remote

0 comments on commit e96b79e

Please sign in to comment.