Skip to content

Commit

Permalink
Merge branch 'next' into ubiminimal
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed May 30, 2024
2 parents c35b877 + c57d730 commit 26b7425
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,23 @@ jobs:
strategy: ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
env:
DEPLOY_IMAGES: false
steps:
- uses: actions/checkout@v3
- name: Check for registry credentials
if: github.repository == 'MariaDB/mariadb-docker' && github.ref == 'refs/heads/master'
run: |
missing=()
[[ -n "${{ secrets.MARIADB_OPERATOR_TOKEN }}" ]] || missing+=(MARIADB_OPERATOR_TOKEN)
for i in "${missing[@]}"; do
echo "Missing github secret: $i"
done
if (( ${#missing[@]} == 0 )); then
echo "DEPLOY_IMAGES=true" >> $GITHUB_ENV
else
echo "Not pushing images to registry or doing operator test"
fi
- name: Prepare Environment
run: ${{ matrix.runs.prepare }}
- name: Pull Dependencies
Expand All @@ -74,3 +89,21 @@ jobs:
run: ${{ matrix.runs.mariadbtest }}
- name: '"docker images"'
run: ${{ matrix.runs.images }}
- name: login to registry
if: ${{ env.DEPLOY_IMAGES == 'true' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: tag
if: ${{ env.DEPLOY_IMAGES == 'true' }}
run: docker tag mariadb:${{ matrix.name }} ghcr.io/mariadb/mariadb:${{ matrix.name }}
- name: push
if: ${{ env.DEPLOY_IMAGES == 'true' }}
run: docker push ghcr.io/mariadb/mariadb:${{ matrix.name }}
- name: MariaDB Operator Test
if: ${{ env.DEPLOY_IMAGES == 'true' }}
run: gh workflow run test-image.yml --repo mariadb-operator/mariadb-operator -f mariadb_image=ghcr.io/mariadb/mariadb:${{ matrix.name }}
env:
GITHUB_TOKEN: "${{ secrets.MARIADB_OPERATOR_TOKEN }}"
1 change: 0 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ declare -A suites=(
[11.0]='jammy'
[11.1]='jammy'
[11.2]='jammy'
[11.3]='jammy'
)

declare -A suffix=(
Expand Down

0 comments on commit 26b7425

Please sign in to comment.