-
Notifications
You must be signed in to change notification settings - Fork 25
chore: migrate to depot CI, remove dagger and github actions #729
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 all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8287926
chore: migrate to depot CI, remove dagger and github actions
35da13c
chore: trigger CI
c3bd3cb
chore: trigger CI after removing branch protection checks
d9ff582
chore: trigger CI round 3
c88498e
chore: trigger depot ci
marccampbell 2b10fc5
fix: address depot ci migration issues
marccampbell 1ae041b
fix: install pact tools in depot workflows
marccampbell 6fe114d
fix: format go files
marccampbell 8475563
fix: wire depot ci secrets
marccampbell 1533142
fix: add lint test helmchart manifests
marccampbell a64aa7f
increase timeout
marccampbell a3e3e45
fix: resolve bugbot comments
ec41d98
chore: remove local planning doc from branch
0031c0c
fix: speed up goreleaser
e4ff73b
fix: correct GOOS/GOARCH env vars for goreleaser single-target; remov…
6bdf99e
remove dryrun
marccampbell cd83ade
fix: wrap LDFLAGS correctly and include root CLI doc in sidebar
marccampbell 1d023a6
fix: change version from const to var so -X ldflags can override it
marccampbell bd1320e
fix: use -f in curl so docs PR creation fails on HTTP errors
marccampbell 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
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,104 @@ | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
|
|
||
| name: "depot: Release" | ||
|
|
||
| jobs: | ||
|
|
||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: ./go.mod | ||
| cache: true | ||
| cache-dependency-path: ./go.sum | ||
| - run: make test-unit | ||
| - name: Install pact | ||
| run: | | ||
| curl -L -o /tmp/pact.tar.gz https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.0/pact-2.0.0-linux-x86_64.tar.gz | ||
| echo "94ea52ef7d6c9dacf431dde7138717d96714131a /tmp/pact.tar.gz" | shasum -c - | ||
| mkdir -p /tmp/pact-standalone | ||
| tar -C /tmp/pact-standalone --strip-components=1 -xzf /tmp/pact.tar.gz | ||
| echo "/tmp/pact-standalone/bin" >> "$GITHUB_PATH" | ||
| rm /tmp/pact.tar.gz | ||
| - run: make test-pact | ||
| - run: make build | ||
|
cursor[bot] marked this conversation as resolved.
|
||
|
|
||
| release: | ||
| needs: build-and-test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: ./go.mod | ||
| cache: true | ||
| cache-dependency-path: ./go.sum | ||
| - name: Install goreleaser | ||
| run: go install github.com/goreleaser/goreleaser/v2@v2.14.3 | ||
| - name: Run goreleaser | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: goreleaser release --clean | ||
|
|
||
| docker-publish: | ||
| needs: build-and-test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: ./go.mod | ||
| cache: true | ||
| cache-dependency-path: ./go.sum | ||
| - name: Build binary with version | ||
| run: | | ||
| VERSION=${GITHUB_REF_NAME#v} | ||
| LDFLAGS="-ldflags \"-X github.com/replicatedhq/replicated/pkg/version.version=${VERSION}\"" | ||
| make build LDFLAGS="${LDFLAGS}" | ||
|
cursor[bot] marked this conversation as resolved.
cursor[bot] marked this conversation as resolved.
|
||
| - name: Build Docker image | ||
| run: | | ||
| VERSION=${GITHUB_REF_NAME#v} | ||
| MAJOR=$(echo $VERSION | cut -d. -f1) | ||
| MINOR=$(echo $VERSION | cut -d. -f1,2) | ||
| echo "VERSION=${VERSION}" >> "$GITHUB_ENV" | ||
| echo "MAJOR=${MAJOR}" >> "$GITHUB_ENV" | ||
| echo "MINOR=${MINOR}" >> "$GITHUB_ENV" | ||
| docker build -f Dockerfile.release -t replicated/vendor-cli:${VERSION} . | ||
| docker tag replicated/vendor-cli:${VERSION} replicated/vendor-cli:latest | ||
| docker tag replicated/vendor-cli:${VERSION} replicated/vendor-cli:${MAJOR} | ||
| docker tag replicated/vendor-cli:${VERSION} replicated/vendor-cli:${MINOR} | ||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USER }} | ||
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
| - name: Push images | ||
| run: | | ||
| docker push replicated/vendor-cli:${VERSION} | ||
| docker push replicated/vendor-cli:latest | ||
| docker push replicated/vendor-cli:${MAJOR} | ||
| docker push replicated/vendor-cli:${MINOR} | ||
|
cursor[bot] marked this conversation as resolved.
|
||
|
|
||
| docs: | ||
| needs: release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: ./go.mod | ||
| cache: true | ||
| cache-dependency-path: ./go.sum | ||
| - name: Build binary | ||
| run: make build | ||
| - name: Generate and publish docs | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.DOCS_REPO_TOKEN }} | ||
| run: ./scripts/generate-docs.sh | ||
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
| FROM alpine:latest | ||
|
|
||
| RUN apk add --no-cache ca-certificates curl git nodejs npm \ | ||
| && update-ca-certificates \ | ||
| && npm install -g replicated-lint | ||
|
|
||
| ENV IN_CONTAINER=1 | ||
|
|
||
| LABEL com.replicated.vendor_cli="true" | ||
|
|
||
| WORKDIR /out | ||
|
|
||
| COPY bin/replicated /replicated | ||
|
|
||
| ENTRYPOINT ["/replicated"] |
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.
Uh oh!
There was an error while loading. Please reload this page.