Skip to content

Commit

Permalink
Add docker login and gh repo fork
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Aug 9, 2021
1 parent 070dee5 commit 974b8e1
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 974b8e1

Please sign in to comment.