Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hopefully fix name #91

Merged
merged 1 commit into from
Feb 23, 2024
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
18 changes: 10 additions & 8 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
package:
required: true
type: string
registry:
required: true
type: string
jobs:
docker-image:
runs-on: ubuntu-latest
Expand All @@ -28,21 +31,20 @@ jobs:
- name: Docker registry login
uses: docker/login-action@v2
with:
registry: ghcr.io
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: metadata
uses: docker/metadata-action@v5
env:
IMAGE_VERSION: ${{ steps.get-version.outputs.package_version}}
REGISTRY: ghcr.io
IMAGE_NAME: tbltp-${{ inputs.package }}
# env:
# IMAGE_VERSION: ${{ steps.get-version.outputs.package_version}}
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
# images: ${{ env.REGISTRY }}/tbltp-${{ inputs.package }}
# images: ${{ env.REGISTRY }}/${{ github.repository }}
images: ${{ inputs.registry }}/tbltp-${{ inputs.package }}
labels: |
org.opencontainers.image.version=${{ env.IMAGE_VERSION }}
org.opencontainers.image.version=${{ steps.get-version.outputs.package_version}}
# org.opencontainers.image.version=${{ env.IMAGE_VERSION }}
# org.opencontainers.image.title=tbltp-${{ inputs.package }}
tags: |
type=semver,pattern={{version}},value=${{ env.IMAGE_VERSION }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
packages: write
with:
package: mui
registry: ghcr.io
package-api:
needs: [start-release]
if: needs.start-release.outputs.package_api == 'true'
Expand All @@ -42,4 +43,5 @@ jobs:
contents: read
packages: write
with:
package: api
package: api
registry: ghcr.io
3 changes: 1 addition & 2 deletions packages/api/src/config/mongoose.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import { MongoClient, Db } from "mongodb";
import { log } from "../utils/logger";
import mongoose, { Mongoose } from "mongoose";

Expand All @@ -17,4 +16,4 @@ export function connect(): Promise<Mongoose> {
const url = getUrl();
log.info(`Connecting to mongo...`);
return mongoose.connect(url, options);
}
}