Skip to content

Commit

Permalink
Release to 6/edge
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Oct 20, 2023
1 parent b563ab5 commit f817082
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

build:
name: Build charms
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v5
uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5
with:
charmcraft-snap-channel: "latest/edge"

Expand Down
41 changes: 21 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release to 5/edge
name: Release to 6/edge

on:
push:
branches:
- main
- 6/edge

jobs:
lib-check:
Expand All @@ -28,21 +28,22 @@ jobs:
- lib-check
uses: ./.github/workflows/ci.yaml

release-to-charmhub:
name: Release to CharmHub
needs:
- lib-check
- ci-tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Upload charm to charmhub
uses: canonical/charming-actions/upload-charm@2.3.0
with:
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
channel: "5/edge"
build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5
with:
charmcraft-snap-channel: "latest/edge"

release:
name: Release charm
needs:
- ci-tests
- build
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v5
with:
channel: 6/edge
artifact-name: ${{ needs.build.outputs.artifact-name }}
secrets:
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }}
permissions:
contents: write # Needed to
8 changes: 5 additions & 3 deletions tests/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

SERIES = "jammy"

HELPER_MONGO_VERSION="6.0.11"

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -121,9 +123,9 @@ async def run_mongo_op(
mongo_uri = await mongodb_uri(ops_test)

if stringify:
mongo_cmd = f"mongo --quiet --eval 'JSON.stringify({mongo_op})' {mongo_uri}{suffix}"
mongo_cmd = f"mongosh --quiet --eval 'JSON.stringify({mongo_op})' {mongo_uri}{suffix}"
else:
mongo_cmd = f"mongo --quiet --eval '{mongo_op}' {mongo_uri}{suffix}"
mongo_cmd = f"mongosh --quiet --eval '{mongo_op}' {mongo_uri}{suffix}"

logger.info("Running mongo command: %r", mongo_cmd)
kubectl_cmd = (
Expand All @@ -137,7 +139,7 @@ async def run_mongo_op(
"--command",
f"--namespace={ops_test.model_name}",
"mongo-test",
"--image=mongo:4.4",
f"--image=mongo:{HELPER_MONGO_VERSION}",
"--",
"sh",
"-c",
Expand Down

0 comments on commit f817082

Please sign in to comment.