Skip to content

Commit

Permalink
chore: switch to 7.74 so we can test the release process for 7.74; al…
Browse files Browse the repository at this point in the history
…so move to alpine 3.18 to get latest CVE fixes (#100)

* switch to 7.74 so we can test the release process for 7.74; also move to alpine 3.18 to get latest CVE fixes

Change-Id: Ie417200c72fbbdacdc90330fd670297b10d0cae0
Signed-off-by: Nick Boldt <nboldt@redhat.com>

* debug merge conflicts

Change-Id: Idcf188ef79e5e15c3fcfc2a2c766f24436d7966b
Signed-off-by: Nick Boldt <nboldt@redhat.com>

---------

Signed-off-by: Nick Boldt <nboldt@redhat.com>
  • Loading branch information
nickboldt authored Sep 18, 2023
1 parent e115d83 commit 7a994be
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ We originally wrote a prototype of this tool in Rust (https://github.com/metlos/

```
$ ./configbump --help
config-bump 7.75.0-SNAPSHOT
config-bump 7.74.0-next
Usage: configbump --dir DIR --labels LABELS [--namespace NAMESPACE]
Options:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.75.0-SNAPSHOT
7.74.0-next
2 changes: 1 addition & 1 deletion build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ COPY . ./
ARG VERSION=dev
RUN GOOS=linux go build -a -ldflags '-w -s' -a -installsuffix cgo -o configbump cmd/configbump/main.go

FROM docker.io/alpine:3.12
FROM docker.io/alpine:3.18

ARG BUILD_DATE
ARG VCS_REF
Expand Down
2 changes: 1 addition & 1 deletion cmd/configbump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type opts struct {

// Version returns the version of the program
func (opts) Version() string {
return "config-bump 7.75.0-SNAPSHOT"
return "config-bump 7.74.0-next"
}

const controllerName = "config-bump"
Expand Down
6 changes: 4 additions & 2 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bump_version () {
usage ()
{
echo "Usage: $0 --version [VERSION TO RELEASE] [--tag-release]"
echo "Example: $0 --version 7.75.0 --tag-release"; echo
echo "Example: $0 --version 7.74.0 --tag-release"; echo
}

if [[ ! ${VERSION} ]]; then
Expand Down Expand Up @@ -96,14 +96,16 @@ if [[ "${BASEBRANCH}" != "${BRANCH}" ]]; then
fi

set -e
set -x

# change VERSION file
echo "${VERSION}" > VERSION

# commit change into branch
if [[ ${NOCOMMIT} -eq 0 ]]; then
COMMIT_MSG="chore: release: bump to ${VERSION} in ${BRANCH}"
git commit -asm "${COMMIT_MSG}" VERSION
git status -s || true
git commit -asm "${COMMIT_MSG}" || git diff || true
git pull origin "${BRANCH}"
git push origin "${BRANCH}"
fi
Expand Down

0 comments on commit 7a994be

Please sign in to comment.