Skip to content

Prepare to publish dagger-cue artefacts - #3486

Merged
gerhard merged 16 commits into
dagger:cue-sdkfrom
gerhard:publish-dagger-cue
Oct 24, 2022
Merged

gerhard merged 16 commits into
dagger:cue-sdkfrom
gerhard:publish-dagger-cue

Conversation

@gerhard

@gerhard gerhard commented Oct 24, 2022 •

Copy link
Copy Markdown
Contributor

This PR is:

It changes the release-v0.2.x.yml workflow to publish dagger-cue binaries.

Linux install.sh & Windows install.ps1 have been updated too. The Linux variant has been tested.

Help wanted for the Windows one.

This was tested via https://github.com/gerhard/dagger/actions/runs/3316263177/jobs/5477850676 & it published:

1/2. AWS S3 files

image

Tested with ./install.sh

image

2/2. Homebrew tap

image

Tested with brew install gerhard/tap/dagger-cue

image


Next steps


FWIW we ended up upgrading to GoReleaser Pro with @aluzzardi so that we get the monorepo support. It has a bunch of other useful features too that we might want to look into https://beckersoft.gumroad.com/l/goreleaser. The license key has been configured in GitHub Actions. The source of truth is the shared 1Password vault.

@gerhard

gerhard commented Oct 24, 2022 •

Copy link
Copy Markdown
Contributor Author

@shykes what version should we use for dagger-cue? The last published dagger is v0.2.36

@shykes

shykes commented Oct 24, 2022

Copy link
Copy Markdown
Contributor

@shykes what version should we use for dagger-cue? The last published dagger is v0.2.36

I was just wondering the same thing. The two logical options are 0.2.36 or 0.1.0. I think 0.1.0 makes more sense, it clarifies the relationship to engine version (decoupled) and is consistent with Go SDK. 0.2 branch will no longer move, so maintaining version mapping won't be needed.

wdyt?

@gerhard

gerhard commented Oct 24, 2022 •

Copy link
Copy Markdown
Contributor Author

0.1.0 makes sense to me too.

I assume that the git tag which we want to use is sdk/cue/v0.1.0 - based on #3424 (comment).

This was referenced Oct 24, 2022
@gerhard
gerhard requested a review from aluzzardi October 24, 2022 22:33
gerhard added a commit that referenced this pull request Oct 24, 2022
In preparation for #3486

Signed-off-by: Gerhard Lazu <[email protected]>
Gerhard Lazu added 16 commits October 25, 2022 00:08
Next step: check that everything works as expected on the fork.

Partial follow-up to #3356

Part of #3471

Supersedes #3483

Signed-off-by: Gerhard Lazu <[email protected]>
For some reason, this larger runner type is not picking up this job in
my dagger fork. Maybe because this is a new workflow... Will
double-check with the GitHub team. For now, switch to the free Ubuntu
runner.

Signed-off-by: Gerhard Lazu <[email protected]>
dagger-cue namespace in S3 so that it doesn't get mixed with dagger CLI v0.2.x

Do not publish as a GitHub Release until we have clarified how the other
SDKs will get published. We don't know for sure how we are going to
approach those just yet, we don't want to be back-tracking - not doing
anything in this respect is the best option right now.

Signed-off-by: Gerhard Lazu <[email protected]>
Use a tag_prefix in GoReleaser to filter out sdk/cue/v from the git tag

Signed-off-by: Gerhard Lazu <[email protected]>
We are unlikely to be using this as a HomeBrew bottle in the short-term.

Signed-off-by: Gerhard Lazu <[email protected]>
Not sure if this will work. If it does, it will help iterating on this
workflow in the future.

Signed-off-by: Gerhard Lazu <[email protected]>
The license key is stored in 1Password

Signed-off-by: Gerhard Lazu <[email protected]>
Otherwise the filename will be e.g. dagger-cue_0.1.0 instead of
dagger-cue_v0.1.0, which is what we have been using so far.

Signed-off-by: Gerhard Lazu <[email protected]>
It's shorter and reads better than the DAGGER_CUE_VERSION alternative.
Also, had it been VERSION to begin with, this would not have been
necessary.

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard
gerhard marked this pull request as ready for review October 24, 2022 23:09
@gerhard
gerhard requested review from a team, samalba and shykes as code owners October 24, 2022 23:09
@gerhard

gerhard commented Oct 24, 2022

Copy link
Copy Markdown
Contributor Author

In the interest of time, going sudo and self-reviewing.

@gerhard gerhard left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It all checks out. I will merge and try to produce a new dagger-cue release. If it all works as expected, power on. If it doesn't, I will open a follow-up PR right after this one.

I am NOT going to Squash and merge in case we need to revert any specific commits. It will also make it easier to understand why specific changes happened, since they tend to be atomic and commit messages relevant. Time to test this in practice.

@gerhard
gerhard merged commit eb69a5f into dagger:cue-sdk Oct 24, 2022
@gerhard

gerhard commented Oct 24, 2022 •

Copy link
Copy Markdown
Contributor Author

@gerhard

gerhard commented Oct 24, 2022 •

Copy link
Copy Markdown
Contributor Author

@gerhard

gerhard commented Oct 24, 2022

Copy link
Copy Markdown
Contributor Author

macOS amd64 curl -L https://dl.dagger.io/dagger-cue/install.sh | sh works as expected:

image

Same on Linux amd64:

image

cc @vikram-dagger for https://deploy-preview-3485--devel-docs-dagger-io.netlify.app/sdk/cue/526369/install

@gerhard

gerhard commented Oct 24, 2022

Copy link
Copy Markdown
Contributor Author

We might want to check on Windows - I don't have access to one.

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.

2 participants