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

Add a workflow to build docker image #202

Merged
merged 12 commits into from
Dec 6, 2023
Merged

Add a workflow to build docker image #202

merged 12 commits into from
Dec 6, 2023

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Nov 27, 2023

Fixes #200.

@H-Shay H-Shay requested a review from a team as a code owner November 27, 2023 23:49
package.json Outdated Show resolved Hide resolved
tsconfig.json Show resolved Hide resolved
@@ -41,6 +41,7 @@ module.exports = {
},
resolve: {
extensions: ['.ts', '.js'],
fallback: { "querystring": require.resolve("querystring-es3") }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently querystring has been deprecated for awhile? It was causing errors failing to resolve and this is the answer my internet googling turned up.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the proper fix is to use URLSearchParams where you can, as it's native to the browser. Not worth fixing in this PR but we should tidy up our frontend code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll look at fixing it in a separate PR, thanks for giving the correct fix!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(hopefully) fixed in #205

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
# TODO build:web fails currently, but it'd be good to make that work when possible and then add it here.
- run: yarn
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a drive-by cleanup now that build:web is sorted out.

Copy link
Contributor Author

@H-Shay H-Shay Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm moving this to a separate PR so that building the docker images is not stuck behind getting access to the repo controls and changing the required checks. The changes have been moved to here: #204

@H-Shay H-Shay requested a review from Half-Shot November 28, 2023 19:21
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good 👍 . Just one thought on using ghcr over dockerhub.

.github/workflows/pipeline.yml Outdated Show resolved Hide resolved
@@ -17,7 +17,7 @@ limitations under the License.
import { Response, Request } from "express";
import template from "./utils/template"
import config from "./config";
import { base32 } from "rfc4648";
const { base32 } = require('rfc4648');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't pretend to understand javascript modules but I hit a compilation error here after merging in main and this fixed it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to quickly check this one. Technically this drops types so we might introduce an error if the function is undefined or something.

@H-Shay H-Shay requested a review from Half-Shot November 29, 2023 00:03
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small changes then I think we're good to go.

.github/workflows/pipeline.yml Outdated Show resolved Hide resolved
.github/workflows/pipeline.yml Outdated Show resolved Hide resolved
@H-Shay H-Shay requested a review from Half-Shot December 4, 2023 19:08
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rock 🤘

@H-Shay H-Shay merged commit ca3d4da into main Dec 6, 2023
5 checks passed
@H-Shay H-Shay deleted the shay/docker_ci branch December 6, 2023 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build Docker images with CI
2 participants