Skip to content

Commit d8db898

Browse files
authored
prep for v0.1.0 release (#6)
* prep for v0.1.0 release Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
1 parent 6f2d762 commit d8db898

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
if [[ "${GITHUB_REF}" == "refs/tags/*" ]]; then
4444
# Release tags.
4545
echo IMAGE_TAG="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
46-
echo GORELEASER_ARGS="--clean --timeout=60m" >> $GITHUB_ENV
46+
echo GORELEASER_ARGS="--clean --timeout=120m" >> $GITHUB_ENV
4747
echo ENABLE_RELEASE_PIPELINE=true >> $GITHUB_ENV
4848
elif [[ "${GITHUB_REF}" == "refs/heads/*" ]]; then
4949
# Branch build.
5050
echo IMAGE_TAG="$(echo "${GITHUB_REF#refs/heads/}" | sed -r 's|/+|-|g')" >> $GITHUB_ENV
51-
echo GORELEASER_ARGS="--clean --skip-validate --timeout=60m" >> $GITHUB_ENV
51+
echo GORELEASER_ARGS="--clean --skip-validate --timeout=120m" >> $GITHUB_ENV
5252
elif [[ "${GITHUB_REF}" == "refs/pull/*" ]]; then
5353
# PR build.
5454
echo IMAGE_TAG="pr-$(echo "${GITHUB_REF}" | sed -E 's|refs/pull/([^/]+)/?.*|\1|')" >> $GITHUB_ENV

.goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,8 @@ docker_manifests:
6969
- "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-arm64"
7070
- "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-ppc64le"
7171
- "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-s390x"
72+
changelog:
73+
use: github-native
74+
skip: '{{ ne .Env.ENABLE_RELEASE_PIPELINE "true" }}'
7275
release:
7376
disable: '{{ ne .Env.ENABLE_RELEASE_PIPELINE "true" }}'

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SHELL = /bin/bash
44
# This value must be updated to the release tag of the most recent release, a change that must
55
# occur in the release commit. IMAGE_VERSION will be removed once each subproject that uses this
66
# version is moved to a separate repo and release process.
7-
export IMAGE_VERSION = v0.0.0
7+
export IMAGE_VERSION = v0.1.0
88
# Build-time variables to inject into binaries
99
export SIMPLE_VERSION = $(shell (test "$(shell git describe --tags)" = "$(shell git describe --tags --abbrev=0)" && echo $(shell git describe --tags)) || echo $(shell git describe --tags --abbrev=0)+git)
1010
export GIT_VERSION = $(shell git describe --dirty --tags --always)
@@ -49,7 +49,7 @@ fix: ## Fixup files in the repo.
4949
go mod tidy
5050
go fmt ./...
5151
make setup-lint
52-
$(TOOLS_DIR)/golangci-lint run --fix --timeout=2m
52+
$(TOOLS_DIR)/golangci-lint run --fix --timeout=5m
5353

5454
.PHONY: setup-lint
5555
setup-lint: ## Setup the lint
@@ -175,7 +175,7 @@ goreleaser: $(LOCALBIN) ## Build a local copy of goreleaser
175175
GOBIN=$(LOCALBIN) go install github.com/goreleaser/goreleaser@$(GORELEASER_VERSION)
176176

177177
export ENABLE_RELEASE_PIPELINE ?= false
178-
export GORELEASER_ARGS ?= --snapshot --clean --timeout=60m
178+
export GORELEASER_ARGS ?= --snapshot --clean --timeout=120m
179179
release: IMAGE_TAG = $(GIT_VERSION)
180180
release: goreleaser ## Runs goreleaser. By default, this will run only as a snapshot and will not publish any artifacts unless it is run with different arguments. To override the arguments, run with "GORELEASER_ARGS=...". When run as a github action from a tag, this target will publish a full release.
181181
$(GORELEASER) $(GORELEASER_ARGS)

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ var (
2828
// and release process, this variable will be removed.
2929

3030
// TODO: find a way to make this automated. For now manually update this before releases.
31-
ImageVersion = "v0.0.0"
31+
ImageVersion = "v0.1.0"
3232
)

testdata/memcached-molecule-operator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ifeq (,$(shell which ansible-operator 2>/dev/null))
100100
@{ \
101101
set -e ;\
102102
mkdir -p $(dir $(ANSIBLE_OPERATOR)) ;\
103-
curl -sSLo $(ANSIBLE_OPERATOR) https://github.com/operator-framework/ansible-operator-plugins/releases/download/v0.0.0/ansible-operator_$(OS)_$(ARCH) ;\
103+
curl -sSLo $(ANSIBLE_OPERATOR) https://github.com/operator-framework/ansible-operator-plugins/releases/download/v0.1.0/ansible-operator_$(OS)_$(ARCH) ;\
104104
chmod +x $(ANSIBLE_OPERATOR) ;\
105105
}
106106
else

0 commit comments

Comments
 (0)