forked from internxt/drive-desktop
-
Notifications
You must be signed in to change notification settings - Fork 4
fix: update build pipeline and configuration for release process #343
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2cca0d9
fix: update build pipeline and configuration for release process
egalvis27 a0bab1e
fix: include dev dependencies in npm install for build process
egalvis27 e6fbb71
fix: streamline manifest generation in build process
egalvis27 d4ace07
fix: add initialization delay for headless app startup in smoke test
egalvis27 ee356ab
fix: refactor build process and add script for release build in conta…
egalvis27 28e3f64
fix: remove redundant validation note from release workflow section i…
egalvis27 f0472b9
fix: add GITHUB_TOKEN environment variable for artifact publishing
egalvis27 78ec5b3
fix: rename GITHUB_TOKEN to GH_TOKEN in publish workflow
egalvis27 d2a8aa5
fix: add GH_TOKEN and GITHUB_TOKEN environment variables for Docker a…
egalvis27 cfaf77c
fix: update token usage in publish workflow to use github.token
egalvis27 c691af5
fix: ensure GH_TOKEN is set for GitHub publisher flows in build conta…
egalvis27 c09f414
fix: add validation for GH_TOKEN in build workflow
egalvis27 a8877aa
fix: streamline token handling in publish workflow and add validation…
egalvis27 aad1ca1
fix: remove unnecessary publish configuration from package.json
egalvis27 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,14 @@ | ||
| # Encryption keys used during build | ||
| CRYPTO_KEY= | ||
| MAGIC_IV= | ||
| MAGIC_SALT= | ||
| NEW_CRYPTO_KEY= | ||
|
|
||
| # Core API endpoints | ||
| NEW_DRIVE_URL= | ||
| DRIVE_API_URL= | ||
| PAYMENTS_URL= | ||
| INTERNXT_DESKTOP_HEADER_KEY= | ||
|
|
||
| BRIDGE_URL= | ||
| APP_SEGMENT_KEY= | ||
| APP_SEGMENT_KEY_TEST= | ||
| BUG_REPORTING_URL= | ||
| PAYMENTS_URL= | ||
| NOTIFICATIONS_URL= | ||
| LOCK_REFRESH_INTERVAL= | ||
|
|
||
| RUDDERSTACK_KEY= | ||
| RUDDERSTACK_DATA_PLANE_URL= | ||
| # Desktop client identification | ||
| INTERNXT_DESKTOP_HEADER_KEY= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| FROM ubuntu:24.04 | ||
|
|
||
| ARG DEBIAN_FRONTEND=noninteractive | ||
| ARG NODE_VERSION=20.20.2 | ||
| ARG GO_VERSION=1.26.1 | ||
|
|
||
| ENV LANG=C.UTF-8 \ | ||
| LC_ALL=C.UTF-8 \ | ||
| NODE_ENV=production | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ca-certificates \ | ||
| curl \ | ||
| build-essential \ | ||
| git \ | ||
| make \ | ||
| pkg-config \ | ||
| python3 \ | ||
| rpm \ | ||
| xz-utils \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" -o /tmp/node.tar.xz \ | ||
| && mkdir -p /usr/local/node \ | ||
| && tar -xJf /tmp/node.tar.xz -C /usr/local/node --strip-components=1 \ | ||
| && ln -s /usr/local/node/bin/node /usr/local/bin/node \ | ||
| && ln -s /usr/local/node/bin/npm /usr/local/bin/npm \ | ||
| && ln -s /usr/local/node/bin/npx /usr/local/bin/npx \ | ||
| && rm /tmp/node.tar.xz | ||
|
|
||
| RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" -o /tmp/go.tar.gz \ | ||
| && rm -rf /usr/local/go \ | ||
| && tar -C /usr/local -xzf /tmp/go.tar.gz \ | ||
| && ln -s /usr/local/go/bin/go /usr/local/bin/go \ | ||
| && rm /tmp/go.tar.gz | ||
|
|
||
| WORKDIR /workspace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| .PHONY: build test lint | ||
|
|
||
| GOFLAGS ?= -mod=readonly -trimpath -buildvcs=false | ||
| LDFLAGS ?= -s -w | ||
|
|
||
| build: | ||
| go build -ldflags="-s -w" -o ../../dist/fuse-daemon ./cmd/daemon | ||
| go build $(GOFLAGS) -ldflags="$(LDFLAGS)" -o ../../dist/fuse-daemon ./cmd/daemon | ||
|
Comment on lines
+3
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this necessary?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| test: | ||
| go test ./... | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these changes are necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.