Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
shopt -s nullglob
OWNER="${{ github.repository_owner }}"
OWNER="${OWNER,,}"
for pkg in .cr-release-packages/*.tgz; do
if [ -z "${pkg:-}" ]; then
break
Expand All @@ -199,9 +201,9 @@ jobs:
# e.g. mariadb-operator-crds-26.6.0.tgz -> chart_name=mariadb-operator-crds, chart_version=26.6.0
chart_name=$(basename "${pkg}" .tgz | sed 's/-[0-9].*$//')
chart_version=$(basename "${pkg}" .tgz | sed 's/^.*-\([0-9].*\)$/\1/')
repo="oci://ghcr.io/${{ github.repository_owner }}/charts"
repo="oci://ghcr.io/${OWNER}/charts"

if gh api "/orgs/${{ github.repository_owner }}/packages/container/charts%2F${chart_name}/versions" \
if gh api "/orgs/${OWNER}/packages/container/charts%2F${chart_name}/versions" \
--jq ".[].metadata.container.tags[]" 2>/dev/null | grep -q "^${chart_version}$"; then
echo "Chart already exists: ${chart_name} ${chart_version}"
else
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io

- name: Set lowercase image owner
run: |
OWNER="${{ github.repository_owner }}"
echo "OWNER=${OWNER,,}" >> $GITHUB_ENV

- name: Publish multi-arch Docker image
uses: docker/build-push-action@v7
with:
Expand All @@ -87,8 +92,8 @@ jobs:
file: ./Dockerfile
platforms: linux/arm64,linux/amd64
tags: |
ghcr.io/${{ github.repository_owner }}/mariadb-operator:${{ needs.args.outputs.VERSION }}
ghcr.io/${{ github.repository_owner }}/mariadb-operator:latest
ghcr.io/${{ env.OWNER }}/mariadb-operator:${{ needs.args.outputs.VERSION }}
ghcr.io/${{ env.OWNER }}/mariadb-operator:latest
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec

VERSION ?= 26.6.0-bandwidth.1
VERSION ?= 26.6.0-bandwidth.2

# mariadb-operator
IMG_NAME ?= ghcr.io/mariadb-operator/mariadb-operator
Expand Down
2 changes: 1 addition & 1 deletion docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</tr>
<tr>
<td>MariaDB Operator</td>
<td><code>ghcr.io/mariadb-operator/mariadb-operator:26.6.0-bandwidth.1</code></td>
<td><code>ghcr.io/mariadb-operator/mariadb-operator:26.6.0-bandwidth.2</code></td>
<td><code>amd64</code> <code>arm64</code></td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions examples/manifests/mariadb_replication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ spec:
# syncBinlog: 1
# Init container that cooperates with mariadb-operator.
# initContainer:
# image: ghcr.io/mariadb-operator/mariadb-operator:26.6.0-bandwidth.1
# image: ghcr.io/mariadb-operator/mariadb-operator:26.6.0-bandwidth.2
# Agent sidecar that cooperates with mariadb-operator.
# agent:
# image: ghcr.io/mariadb-operator/mariadb-operator:26.6.0-bandwidth.1
# image: ghcr.io/mariadb-operator/mariadb-operator:26.6.0-bandwidth.2

service:
type: LoadBalancer
Expand Down
Loading