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

chore(ci): fixes context of docker buildkit #18

Merged
merged 2 commits into from
Jul 17, 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
3 changes: 2 additions & 1 deletion .github/workflows/ghcr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
context: ./docker
dockerfile: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
2 changes: 1 addition & 1 deletion src/processors/insertIntoDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const insertIntoDatabase = async (payload: EachMessagePayload) => {
};

fs.writeFileSync('met.json', JSON.stringify(ids));
await app.service('recv-data')._create(ids);
await app.service('v1/recv-data')._create(ids);
} catch (error: any) {
console.error('Error inserting into database:', error.message, error.stack);
throw new Error(error);
Expand Down
6 changes: 3 additions & 3 deletions src/services/recv-data/recv-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import hooks from './recv-data.hooks';
// Add this service to the service type index
declare module '../../declarations' {
interface ServiceTypes {
'recv-data': RecvData & ServiceAddons<any>;
'v1/recv-data': RecvData & ServiceAddons<any>;
}
}

Expand All @@ -20,10 +20,10 @@ export default function (app: Application): void {
};

// Initialize our service with any options it requires
app.use('/recv-data', new RecvData(options, app));
app.use('/v1/recv-data', new RecvData(options, app));

// Get our initialized service so that we can register hooks
const service = app.service('recv-data');
const service = app.service('v1/recv-data');

service.hooks(hooks);
}