Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ jobs:
set -e
mkdir -p release
pushd release
yq eval '.dependencies[] | .name + " " + .repository' ../${{ matrix.repository }}/charts/${{ matrix.repository }}/Chart.yaml | while read -r repo_name repo_url; do
if [[ ! "$repo_url" =~ ^(oci://|file://) ]]; then
helm repo add "$repo_name" "$repo_url"
else
echo "Skipping repository $repo_url for $repo_name"
fi
done
helm repo update
helm dependency build ../${{ matrix.repository }}/charts/${{ matrix.repository }}
helm package ../${{ matrix.repository }}/charts/${{ matrix.repository }} \
--app-version ${{ needs.env.outputs.RELEASE_VERSION }} \
--version ${{ needs.env.outputs.TRIMMED_RELEASE_VERSION }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/releaseimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/lab/${{ matrix.repository }}
path: go/src/open-cluster-management.io/lab

- name: install Go
uses: actions/setup-go@v5
Expand All @@ -69,13 +69,15 @@ jobs:
- name: images
run: |
set -e
cd ${{ matrix.repository }}
IMAGE_TAG=${{ needs.env.outputs.RELEASE_VERSION }}-${{ matrix.arch }} \
IMAGE_BUILD_EXTRA_FLAGS="--build-arg OS=linux --build-arg ARCH=${{ matrix.arch }}" \
make images

- name: push
run: |
set -e
cd ${{ matrix.repository }}
echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin
IMAGE_TAG=${{ needs.env.outputs.RELEASE_VERSION }}-${{ matrix.arch }} \
make image-push
Expand All @@ -92,17 +94,19 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/lab/${{ matrix.repository }}
path: go/src/open-cluster-management.io/lab

- name: create
run: |
set -e
cd ${{ matrix.repository }}
echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin
IMAGE_TAG=${{ needs.env.outputs.RELEASE_VERSION }} make image-manifest

- name: annotate
run: |
set -e
cd ${{ matrix.repository }}
IMAGE_TAG=${{ needs.env.outputs.RELEASE_VERSION }} make image-manifest-annotate

- name: push
Expand Down