Skip to content

Commit

Permalink
chore: fix release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Serpentiel committed Apr 2, 2024
1 parent ad279e1 commit 67fef0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ on:
- v*

jobs:
bump_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
sed -i "s/const operatorVersion = \".*\"/const operatorVersion = \"${GITHUB_REF_NAME#v}\"/" main.go
- uses: Amraneze/[email protected]
with:
repository: ${{ github.repository }}
branch_name: main
github_token: ${{ secrets.AIVEN_CI_PAT__VALID_WHILE_ALEKS_IS_EMPLOYED }}
commit_message: "chore(version): bump operator version"
files_to_commit: main.go
build_default_release_manifest:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG TARGETOS
ARG TARGETARCH
ARG VERSION=dev
RUN CGO_ENABLED=0 GOOS="$TARGETOS" GOARCH="$TARGETARCH" go build -trimpath \
-ldflags="-s -w -X github.com/aiven/aiven-operator/controllers.version=${VERSION}" \
-ldflags="-s -w -X github.com/aiven/aiven-operator/main.operatorVersion=${VERSION}" \
-a -o manager main.go

# Use distroless as minimal base image to package the manager binary
Expand Down

0 comments on commit 67fef0d

Please sign in to comment.