Skip to content

Commit

Permalink
Merge pull request #553 from mallardduck/prepare-for-main
Browse files Browse the repository at this point in the history
Prepare BRO for new branching
  • Loading branch information
mallardduck authored Aug 8, 2024
2 parents fbfd190 + ea0ab9c commit 88ec32d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"group:allNonMajor"
],
"baseBranches": [
"main",
"release/v3.0",
"release/v4.0",
"release/v5.0"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
workflow_call:
push:
branches:
- main
- release/v5.0
- release/v4.0
- release/v3.0
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name : Publish Images & artifacts (via goreleaser)

on:
push:
branches:
- main
tags:
- "*"

Expand Down Expand Up @@ -67,15 +69,11 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
# setup tag name
- if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
echo TAG_NAME=$(echo $GITHUB_REF | sed -e "s|refs/tags/||") >> $GITHUB_ENV
- name: Build and push BRO image
uses: docker/build-push-action@v6
with:
context: .
file: ./package/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO }}/backup-restore-operator:${{ env.TAG_NAME }}
tags: ${{ env.REGISTRY }}/${{ env.REPO }}/backup-restore-operator:${{ github.ref == 'refs/heads/main' && 'head' || github.ref_name }}
platforms: linux/amd64,linux/arm64
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ What the Backup Restore Operator is not:
- Configured to back up user-created resources on the Rancher cluster.

### Branches and Releases
This is the current branch strategy for `rancher/backup-restore-operator`, it may change in the future.

| Branch | Tag | Rancher |
|----------------|----------|------------------------|
| `main` | `head` | `main` branch (`head`) |
| `release/v5.0` | `v5.x.x` | `v2.9.x` |
| `release/v4.0` | `v4.x.x` | `v2.8.x` |
| `release/v3.0` | `v3.x.x` | `v2.7.x` |

* the tag `v5.x.x` is cut from the `release/v5.0` branch for the Rancher v2.9.x line
* the tag `v4.x.x` is cut from the `release/v4.0` branch for the Rancher v2.8.x line
* the tag `v3.x.x` is cut from the `release/v3.0` branch for the Rancher v2.7.x line
----

## Quickstart
Expand Down

0 comments on commit 88ec32d

Please sign in to comment.