Skip to content

Commit 52047eb

Browse files
authored
chore(build): update release scripts and build targets to sync up in crd branch (#1288)
Signed-off-by: Cheng Fang <[email protected]>
1 parent 92d51e8 commit 52047eb

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.github/workflows/ci-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
tar -C /tmp -xvzf /tmp/kustomize.tar.gz
4949
sudo mv /tmp/kustomize /usr/local/bin/kustomize
5050
chmod +x /usr/local/bin/kustomize
51-
- name: Run make manifests
51+
- name: Run make build-installer
5252
run: |
53-
make manifests
53+
IMAGE_TAG=latest make build-installer
5454
- name: Check nothing has changed
5555
run: |
5656
set -xo pipefail

.github/workflows/create-release-draft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
set -ex
4343
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" quay.io
44-
IMAGE_PUSH=yes IMAGE_TAG=v${{ steps.version.outputs.version }} make multiarch-image
44+
IMAGE_PUSH=yes IMAGE_TAG=v${{ steps.version.outputs.version }} make docker-buildx
4545
env:
4646
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
4747
DOCKER_PASSWORD: ${{ secrets.QUAY_TOKEN }}

.github/workflows/image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" quay.io
3838
fi
3939
if [[ "${MULTIARCH}" = "yes" ]]; then
40-
IMAGE_PUSH=${PUSH} make multiarch-image
40+
IMAGE_PUSH=${PUSH} make docker-buildx
4141
else
42-
make image
42+
make docker-build
4343
fi
4444
working-directory: argocd-image-updater
4545
env:

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,8 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
159159

160160
.PHONY: build-installer
161161
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
162-
mkdir -p dist
163162
cd config/manager && $(KUSTOMIZE) edit set image argocd-image-updater-controller=${IMG}
164-
$(KUSTOMIZE) build config/default > dist/install.yaml
163+
$(KUSTOMIZE) build config/default > config/install.yaml
165164

166165
.PHONY: release-binaries
167166
release-binaries:

hack/create-release-pr.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [[ ! $(git ls-remote --exit-code ${REMOTE_URL} ${RELEASE_BRANCH}) ]]; then
3030
fi
3131

3232
### look for latest on-branch tag
33-
PREVIOUS_TAG=$(git describe --tags --abbrev=0 --match "*${RELEASE_BRANCH##release-}*" 2>/dev/null || true)
33+
PREVIOUS_TAG=$(git describe --tags --abbrev=0 --match "v${RELEASE_BRANCH##release-}*" 2>/dev/null || true)
3434

3535
if [ -n "$PREVIOUS_TAG" ]; then
3636
NEW_VERSION=$(semver-cli inc patch $PREVIOUS_TAG)
@@ -41,13 +41,13 @@ fi
4141
echo $NEW_VERSION > VERSION
4242
IMAGE_TAG="v${NEW_VERSION}"
4343
# Update manifests
44-
make manifests
44+
make build-installer
4545

4646
# Create PR for the release
4747
git checkout -b "feat/new-version-${NEW_VERSION}"
4848

4949
# Commit and push the changes
50-
git commit -m "Release ${NEW_VERSION}" VERSION manifests/
50+
git commit -m "Release ${NEW_VERSION}" VERSION config/
5151
git push --set-upstream ${REMOTE} "feat/new-version-${NEW_VERSION}"
5252
gh label --repo ${REMOTE_URL} create --force release
5353
gh pr --repo ${REMOTE_URL} \

0 commit comments

Comments
 (0)