Skip to content

Commit

Permalink
feat: update to mongo 8.0.4 (#352)
Browse files Browse the repository at this point in the history
* feat: update to mongo 8.0.4
  • Loading branch information
micahg authored Jan 4, 2025
1 parent 9d9e253 commit 884f32a
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 441 deletions.
53 changes: 9 additions & 44 deletions .github/workflows/test-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,11 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
MONGO_CACHE_PATH: ~/.cache/mongodb-binaries
MONGO_BINARY: mongod-x86_64-ubuntu-7.0.0
MONGOMS_VERSION: 7.0.0
MONGOMS_DOWNLOAD_URL: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-7.0.0.tgz
MONGO_BINARY: mongod-x86_64-ubuntu-8.0.4
MONGOMS_VERSION: 8.0.4
# the download url is used for keying our cache so we have to force an archecture/os/os version/mongo version
MONGOMS_DOWNLOAD_URL: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-8.0.4.tgz
jobs:
# test_yq:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: '18.x'
# - id: version-mono
# name: Get Versions
# run: |
# NEW_VERSION=$(node -p "require('./package.json').version")
# NEW_API_VERSION=$(node -p "require('./packages/api/package.json').version")
# NEW_API_IMAGE="ghcr.io/micahg/tbltp-api:$NEW_VERSION"
# NEW_MUI_VERSION=$(node -p "require('./packages/mui/package.json').version")
# NEW_MUI_IMAGE="ghcr.io/micahg/tbltp-mui:$NEW_VERSION"
# echo "new_version=$NEW_VERSION"
# echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
# echo "new_api_version=$NEW_API_VERSION"
# echo "new_api_version=$NEW_API_VERSION" >> "$GITHUB_OUTPUT"
# echo "new_api_image=$NEW_API_IMAGE"
# echo "new_api_image=$NEW_API_IMAGE" >> "$GITHUB_OUTPUT"
# echo "new_mui_version=$NEW_MUI_VERSION"
# echo "new_mui_version=$NEW_MUI_VERSION" >> "$GITHUB_OUTPUT"
# echo "new_mui_image=$NEW_MUI_IMAGE"
# echo "new_mui_image=$NEW_MUI_IMAGE" >> "$GITHUB_OUTPUT"
# - name: Test YQ
# run: |
# yq --version
# echo yq -i '.appVersion = "${{ steps.version-mono.outputs.new_version }}"' chart/Chart.yaml
# yq -i '.appVersion = "${{ steps.version-mono.outputs.new_version }}"' chart/Chart.yaml
# echo yq '.appVersion' chart/Chart.yaml
# yq '.appVersion' chart/Chart.yaml
# echo yq '.version' chart/Chart.yaml
# yq '.version' chart/Chart.yaml
# git status
# git diff
test_api:
runs-on: ubuntu-latest
outputs:
Expand All @@ -57,12 +22,12 @@ jobs:
contents: read
steps:
# cache download ./node_modules/.cache
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Cache Mongo Binary
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.MONGO_CACHE_PATH }}/${{ env.MONGO_BINARY }}
key: ${{ env.MONGO_BINARY }}
Expand All @@ -82,8 +47,8 @@ jobs:
contents: read
steps:
# cache download ./node_modules/.cache
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ apiStorageClassSize: 10Gi
mongoName: "mongo"
mongoSuffix: "lrmrxki.mongodb.net"
mongoImagePath: mongo
mongoImageVers: 7.0.0
mongoImageVers: 8.0.4
mongoPort: 27017
mongoDB: tbltp
certIssuer: letsencrypt-staging
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
mongo:
image: mongo:7.0.0
image: mongo:8.0.4
ports:
- 27017:27017
api:
Expand Down
Loading

0 comments on commit 884f32a

Please sign in to comment.