Skip to content

Commit

Permalink
Merge pull request #1288 from buildpacks-community/lifecycle-image-login
Browse files Browse the repository at this point in the history
GHA login to docker before pushing lifecycle image
  • Loading branch information
chenbh authored Jul 25, 2023
2 parents cc28885 + 12387f8 commit 6bdaa93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker Login
uses: docker/[email protected]
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Build
run: |
trap 'echo -e "$output"' EXIT
output=$(go run ./hack/lifecycle/main.go --tag=${{ env.PUBLIC_IMAGE_DEV_REPO }}/lifecycle 2>&1)
image=$(echo "$output" | grep "saved lifecycle" | awk -F "saved lifecycle image: " '{print $2}')
mkdir images
Expand Down

0 comments on commit 6bdaa93

Please sign in to comment.