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: Make deploy use new build scripts #406

Merged
merged 1 commit into from
Mar 8, 2022
Merged

fix: Make deploy use new build scripts #406

merged 1 commit into from
Mar 8, 2022

Conversation

kylecarbs
Copy link
Member

No description provided.

@kylecarbs kylecarbs self-assigned this Mar 8, 2022
@codecov
Copy link

codecov bot commented Mar 8, 2022

Codecov Report

Merging #406 (d0789c9) into main (3eb6fb7) will decrease coverage by 0.39%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #406      +/-   ##
==========================================
- Coverage   68.57%   68.18%   -0.40%     
==========================================
  Files         155      158       +3     
  Lines        9048     9228     +180     
  Branches       73       73              
==========================================
+ Hits         6205     6292      +87     
- Misses       2244     2309      +65     
- Partials      599      627      +28     
Flag Coverage Δ
unittest-go-macos-latest 62.59% <ø> (-0.32%) ⬇️
unittest-go-ubuntu-latest 67.45% <ø> (+0.03%) ⬆️
unittest-go-windows-2022 62.15% <ø> (?)
unittest-js 66.02% <ø> (ø)
Impacted Files Coverage Δ
provisionersdk/transport.go 78.72% <0.00%> (-6.39%) ⬇️
peer/conn.go 77.74% <0.00%> (-3.84%) ⬇️
provisionerd/provisionerd.go 77.20% <0.00%> (-2.03%) ⬇️
peerbroker/proxy.go 57.55% <0.00%> (-1.75%) ⬇️
agent/usershell/usershell_windows.go 0.00% <0.00%> (ø)
pty/start_windows.go 60.86% <0.00%> (ø)
pty/pty_windows.go 68.25% <0.00%> (ø)
coderd/provisionerdaemons.go 57.60% <0.00%> (+0.54%) ⬆️
pty/ptytest/ptytest.go 100.00% <0.00%> (+5.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3eb6fb7...d0789c9. Read the comment docs.

Comment on lines -13 to -15
# Once `provisionerd` is available, we'll also need that binary
# COPY bin/provisionerd /provisionerd
# RUN chmod +x /provisionerd
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for updating this!

cp ./images/coder/run.sh ./bin
docker build --network=host -t us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest -f images/coder/Dockerfile ./bin
cp ./images/coder/run.sh ./dist/coder_$(GOOS)_$(GOARCH)
docker build --network=host -t us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest -f images/coder/Dockerfile ./dist/coder_$(GOOS)_$(GOARCH)
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I missed this in your other PR where the binaries changed - we don't have a test for this yet, unfortunately (deploy isn't checked at all on PRs).

We could add a smoke test where we run the docker image and verify that we can curl and get the login page, to help make it easier to catch these in the future

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh true!

@kylecarbs kylecarbs merged commit eea5b9d into main Mar 8, 2022
@kylecarbs kylecarbs deleted the deploy branch March 8, 2022 03:19
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.

None yet

2 participants