File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change @@ -159,9 +159,8 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
159159
160160.PHONY : build-installer
161161build-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
167166release-binaries :
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ if [[ ! $(git ls-remote --exit-code ${REMOTE_URL} ${RELEASE_BRANCH}) ]]; then
3030fi
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
3535if [ -n " $PREVIOUS_TAG " ]; then
3636 NEW_VERSION=$( semver-cli inc patch $PREVIOUS_TAG )
4141echo $NEW_VERSION > VERSION
4242IMAGE_TAG=" v${NEW_VERSION} "
4343# Update manifests
44- make manifests
44+ make build-installer
4545
4646# Create PR for the release
4747git 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 /
5151git push --set-upstream ${REMOTE} " feat/new-version-${NEW_VERSION} "
5252gh label --repo ${REMOTE_URL} create --force release
5353gh pr --repo ${REMOTE_URL} \
You can’t perform that action at this time.
0 commit comments