Skip to content

Commit

Permalink
Added GCR login
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Sep 18, 2023
1 parent 111670a commit 67ca8c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/actions/build-images/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ runs:
pack-version: 0.30.0

# docker hub login
- uses: docker/login-action@v1
- name: Login to docker.io
uses: docker/login-action@v1
with:
username: ${{ inputs.dockerhub-username }}
password: ${{ inputs.dockerhub-password }}

- name: Login to GCR
uses: docker/login-action@v3
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- name: Build Images
env:
TAG: ${{ inputs.version }}
Expand Down
1 change: 0 additions & 1 deletion .github/actions/build-images/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ for ((i = 0; i < len; i++)); do
docker system prune -f
docker system prune --volumes -f
echo "Sleeping for 5mins"
sleep 300
fi
done

Expand Down

0 comments on commit 67ca8c7

Please sign in to comment.