-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1339 from buildpacks-community/fix-azure-devops-0.11
[0.11.x] Fix cloning with Azure DevOps Git
- Loading branch information
Showing
9 changed files
with
65 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,11 @@ on: | |
branches: | ||
- main | ||
- release/** | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+-?** | ||
pull_request: | ||
branches: | ||
- release/** | ||
- release/** | ||
|
||
defaults: | ||
run: | ||
|
@@ -23,7 +25,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -42,9 +44,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -60,9 +62,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -78,9 +80,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -96,9 +98,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -114,9 +116,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -132,9 +134,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -150,9 +152,9 @@ jobs: | |
runs-on: windows-2019 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -170,9 +172,9 @@ jobs: | |
runs-on: windows-2019 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
|
@@ -190,13 +192,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- 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 | ||
|
@@ -221,15 +231,15 @@ jobs: | |
- completion-windows-image | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: Setup carvel | ||
uses: carvel-dev/setup-action@v1 | ||
uses: carvel-dev/setup-action@v2 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
only: ytt, kapp | ||
|
@@ -240,7 +250,7 @@ jobs: | |
name: images | ||
|
||
- name: Build release yaml | ||
run: | | ||
run: | | ||
ytt -f config/ \ | ||
-v controller_image=$(cat controller) \ | ||
-v webhook_image=$(cat webhook) \ | ||
|
@@ -275,7 +285,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
|
@@ -286,7 +296,7 @@ jobs: | |
uses: imjasonh/[email protected] | ||
|
||
- name: Setup carvel | ||
uses: carvel-dev/setup-action@v1 | ||
uses: carvel-dev/setup-action@v2 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
only: ytt, kapp | ||
|
@@ -343,13 +353,13 @@ jobs: | |
EOF | ||
- name: Create Kind Cluster | ||
uses: helm/kind-action@v1.7.0 | ||
uses: helm/kind-action@v1.8.0 | ||
with: | ||
cluster_name: e2e | ||
config: kind.yaml | ||
|
||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ env.REGISTRY_URL }} | ||
username: ${{ env.REGISTRY_USER }} | ||
|
@@ -428,11 +438,11 @@ jobs: | |
- build-init-windows-image | ||
- completion-windows-image | ||
- lifecycle-image | ||
if: ${{ startsWith(github.ref, 'refs/heads/release/') }} | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
|
@@ -443,7 +453,7 @@ jobs: | |
uses: imjasonh/[email protected] | ||
|
||
- name: Setup carvel | ||
uses: carvel-dev/setup-action@v1 | ||
uses: carvel-dev/setup-action@v2 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
only: ytt | ||
|
@@ -452,16 +462,16 @@ jobs: | |
uses: actions/download-artifact@v3 | ||
|
||
- name: Docker Login | ||
uses: docker/login-action@v2.2.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- name: Parse branch name | ||
- name: Parse tag name | ||
run: | | ||
echo "GITHUB_REF=${GITHUB_REF}" | ||
[[ $GITHUB_REF =~ ^refs\/heads\/release\/(.*)$ ]] && version=${BASH_REMATCH[1]} | ||
[[ $GITHUB_REF =~ ^refs\/tags\/v(.*)$ ]] && version=${BASH_REMATCH[1]} | ||
if [[ -z "${version}" ]]; then | ||
echo "ERROR: kpack version not detected." | ||
exit 1 | ||
|
@@ -474,12 +484,12 @@ jobs: | |
for image in images/*; do | ||
dev_image=$(cat $image) | ||
digest=$(echo $dev_image| cut -d "@" -f 2) | ||
name=$(basename $image) | ||
final_repo="${{ env.PUBLIC_IMAGE_REPO }}/${name}" | ||
final_repo="${{ env.PUBLIC_IMAGE_REPO }}/${name}" | ||
crane copy "$dev_image" "$final_repo" | ||
echo "${final_repo}@${digest}" > final-image-refs/$name | ||
done | ||
|
@@ -503,7 +513,7 @@ jobs: | |
-v completion_image=$(cat final-image-refs/completion) \ | ||
-v completion_windows_image=$(cat final-image-refs/completion-windows) \ | ||
-v lifecycle_image=$(cat final-image-refs/lifecycle) \ | ||
-v version=${{ env.KPACK_VERSION }} > $file | ||
-v kpack_version=${{ env.KPACK_VERSION }} > $file | ||
echo "sha=$(shasum -a 256 $file)" >> $GITHUB_OUTPUT | ||
- name: Upload Release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,15 @@ name: Test | |
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
uses: ./.github/actions/run-tests | ||
run: make unit-ci | ||
- name: Report coverage | ||
uses: codecov/[email protected] |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @matthewmcnew @tomkennedy513 @chenbh @pviraj59 | ||
* @buildpacks-community/kpack-maintainers |
Oops, something went wrong.