Skip to content

Commit

Permalink
Bump to 7.75; update copyrights and other files.
Browse files Browse the repository at this point in the history
Update .github/workflows/next-build.yaml

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Update .github/workflows/next-build.yaml

Update .github/workflows/release.yml

Update .github/workflows/next-build.yaml

Update RELEASE.md

Update VERSION

Update cmd/configbump/main.go

Update make-release.sh

Update make-release.sh

Change-Id: Ibfc50597e4c6a50b34e3d3f586e8f8df20feaa57

disable mattermost messaging; use correct secret for GH token

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

bump to 7.75

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

fix chmod

Change-Id: If80af908352592c3f7d9e5e8e849bb11fe5643dc
Signed-off-by: Nick Boldt <nboldt@redhat.com>
  • Loading branch information
nickboldt committed Sep 16, 2023
1 parent 9e652df commit ac95b47
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/next-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023 Red Hat, Inc.
# Copyright (c) 2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
Expand Down Expand Up @@ -36,12 +36,12 @@ jobs:
- id: vars
shell: bash
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and push both short SHA tag and next tag
uses: docker/build-push-action@v3
with:
file: build/dockerfiles/Dockerfile
platforms: linux/amd64,linux/ppc64le,linux/arm64
platforms: linux/amd64,linux/arm64
push: true
tags: |
quay.io/che-incubator/configbump:next
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023 Red Hat, Inc.
# Copyright (c) 2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
Expand Down Expand Up @@ -67,25 +67,25 @@ jobs:
git config --global user.name "Mykhailo Kuznietsov"
git config --global user.email "mkuznets@redhat.com"
git config --global pull.rebase true
export GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }}
export GITHUB_TOKEN=${{ secrets.CHE_INCUBATOR_BOT_GITHUB_TOKEN }}
NO_COMMIT=${{ github.event.inputs.noCommit}}
if [[ $NO_COMMIT == "true" ]]; then
NO_COMMIT="--no-commit"
else
NO_COMMIT=
fi
/bin/bash make-release.sh --version ${{ github.event.inputs.version }} --trigger-release $NO_COMMIT
- name: Create failure MM message
if: ${{ failure() }}
run: |
echo "{\"text\":\":no_entry_sign: Che Configbump ${{ github.event.inputs.version }} release has failed: https://github.com/che-incubator/configbump/actions/workflows/release.yml\"}" > mattermost.json
- name: Create success MM message
run: |
echo "{\"text\":\":white_check_mark: Che Configbump ${{ github.event.inputs.version }} has been released: quay.io/che-incubator/configbump:${{ github.event.inputs.version }}\"}" > mattermost.json
- name: Send MM message
if: ${{ success() }} || ${{ failure() }}
uses: mattermost/action-mattermost-notify@1.1.0
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_CHANNEL: eclipse-che-releases
MATTERMOST_USERNAME: che-bot
# - name: Create failure MM message
# if: ${{ failure() }}
# run: |
# echo "{\"text\":\":no_entry_sign: Che Configbump ${{ github.event.inputs.version }} release has failed: https://github.com/che-incubator/configbump/actions/workflows/release.yml\"}" > mattermost.json
# - name: Create success MM message
# run: |
# echo "{\"text\":\":white_check_mark: Che Configbump ${{ github.event.inputs.version }} has been released: quay.io/che-incubator/configbump:${{ github.event.inputs.version }}\"}" > mattermost.json
# - name: Send MM message
# if: ${{ success() }} || ${{ failure() }}
# uses: mattermost/action-mattermost-notify@1.1.0
# env:
# MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
# MATTERMOST_CHANNEL: eclipse-che-releases
# MATTERMOST_USERNAME: che-bot
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.63.0-SNAPSHOT
config-bump 7.75.0-SNAPSHOT
Usage: configbump --dir DIR --labels LABELS [--namespace NAMESPACE]
Options:
Expand Down
2 changes: 2 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Eclipse Che Configbump release process

Use "Release Che Configbump" workflow for release, which can be triggered manually on GitHub page of the repository at Actions -> "Release Che Configbump" -> "Run workflow"

Normally this workflow will be triggered as part of a Che release - see https://github.com/eclipse-che/che-release/actions/workflows/release-orchestrate-overall.yml
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.63.0-SNAPSHOT
7.75.0-SNAPSHOT
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.63.0-SNAPSHOT"
return "config-bump 7.75.0-SNAPSHOT"
}

const controllerName = "config-bump"
Expand Down
6 changes: 3 additions & 3 deletions make-release.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2019-2023 Red Hat, Inc.
# Copyright (c) 2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
Expand Down Expand Up @@ -36,7 +36,7 @@ done
usage ()
{
echo "Usage: $0 --version [VERSION TO RELEASE] [--trigger-release]"
echo "Example: $0 --version 7.7.0 --trigger-release"; echo
echo "Example: $0 --version 7.75.0 --trigger-release"; echo
}

if [[ ! ${VERSION} ]]; then
Expand All @@ -50,7 +50,7 @@ releaseMachineExec() {
--tag "${REGISTRY}/${ORGANIZATION}/${IMAGE}:${VERSION}" \
--push \
--provenance=false \
-f ./${DOCKERFILE} . --platform "linux/amd64,linux/ppc64le,linux/arm64" | cat
-f ./${DOCKERFILE} . --platform "linux/amd64,linux/arm64" | cat
echo "Pushed ${REGISTRY}/${ORGANIZATION}/${IMAGE}:${VERSION}"
}

Expand Down

0 comments on commit ac95b47

Please sign in to comment.