Skip to content

Commit

Permalink
Extend CI to test operator storing on ghcr.io
Browse files Browse the repository at this point in the history
GITHUB_TOKEN is auto_populated.

The MARIADB_OPERATOR_TOKEN is a secret provided by
the owner of https://github.com/mariadb-operator/mariadb-operator

that expires on Expires on Tue, May 27 2025.
  • Loading branch information
grooverdan committed May 29, 2024
1 parent e067772 commit 91b7a8c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,15 @@ jobs:
run: ${{ matrix.runs.mariadbtest }}
- name: '"docker images"'
run: ${{ matrix.runs.images }}
- name: login to repo
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: push to repo
run: docker push ${{ matrix.name }} ghcr.io/MariaDB/mariadb:${{ matrix.name }}
- name: MariaDB Operator Test
run: gh workflow run test-image.yaml --repo mariadb-operator/mariadb-operator -f mariadb_image=ghcr.io/MariaDB/mariadb:${{ matrix.name }}
env:
GITHUB_TOKEN: "${{ secrets.MARIADB_OPERATOR_TOKEN }}"

0 comments on commit 91b7a8c

Please sign in to comment.