Skip to content

Commit

Permalink
Update shared github-config (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: paketo-bot <paketobuildpacks@paketo.io>
  • Loading branch information
paketo-bot and paketo-bot authored Jun 2, 2020
1 parent 42b70d3 commit c28bd49
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/push-buildpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ jobs:
steps:
- name: Download
id: download
uses: paketo-buildpacks/github-config/actions/buildpackage/download@gcr-push
uses: paketo-buildpacks/github-config/actions/buildpackage/download@master
- name: Push
env:
GCR_PUSH_BOT_JSON_KEY: ${{ secrets.GCR_PUSH_BOT_JSON_KEY }}
run: |
echo "${{ secrets.GCR_PUSH_BOT_JSON_KEY }}" | docker login gcr.io --username _json_key --password-stdin
docker import image "${GITHUB_WORKSPACE}/${{ steps.download.outputs.buildpackage }}" "gcr.io/${{ github.repository }}:${{ steps.download.outputs.tag }}"
echo "${GCR_PUSH_BOT_JSON_KEY}" | docker login --username _json_key --password-stdin https://gcr.io
docker image import "${GITHUB_WORKSPACE}/${{ steps.download.outputs.buildpackage }}" "gcr.io/${{ github.repository }}:${{ steps.download.outputs.tag }}"
docker tag "gcr.io/${{ github.repository }}:${{ steps.download.outputs.tag }}" "gcr.io/${{ github.repository }}:latest"
docker push "gcr.io/${{ github.repository }}:${{ steps.download.outputs.tag }}"
docker push "gcr.io/${{ github.repository }}:latest"

0 comments on commit c28bd49

Please sign in to comment.