-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(ci,chore) update release process (#161)
- Loading branch information
Showing
11 changed files
with
1,012 additions
and
60 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -25,6 +25,5 @@ coverage.txt | |
.bin | ||
flow | ||
flow*.tar.gz | ||
dist | ||
completions/ | ||
|
||
cmd/internal/version/*.txt | ||
dist/ |
This file contains 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,80 @@ | ||
# Documentation https://goreleaser.com | ||
|
||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj | ||
|
||
version: 2 | ||
before: | ||
hooks: | ||
- go mod tidy | ||
- go generate ./... | ||
|
||
builds: | ||
- binary: flow | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
mod_timestamp: '{{ .CommitTimestamp }}' | ||
|
||
gomod: | ||
proxy: true | ||
|
||
archives: | ||
- format: tar.gz | ||
files: | ||
- LICENSE | ||
- README.md | ||
- completions | ||
name_template: >- | ||
{{ .Binary }}_ | ||
{{- .Tag }}_ | ||
{{- .Os }}_ | ||
{{- .Arch }} | ||
brews: | ||
- name: flow | ||
homepage: https://flowexec.io | ||
license: Apache-2.0 | ||
directory: Formula | ||
repository: | ||
owner: jahvon | ||
name: homebrew-flow | ||
dependencies: | ||
- name: xclip | ||
os: linux | ||
install: | | ||
bin.install "flow" | ||
bash_completion.install "completions/flow.bash" | ||
zsh_completion.install "completions/flow.zsh" | ||
fish_completion.install "completions/flow.fish" | ||
test: | | ||
system "#{bin}/flow --version" | ||
dockers: | ||
- image_templates: | ||
- ghcr.io/jahvon/flow:latest | ||
- ghcr.io/jahvon/flow:{{.Tag}} | ||
|
||
changelog: | ||
sort: asc | ||
groups: | ||
- title: "New features" | ||
regexp: '^(feat|\(feat.*\)):' | ||
order: 0 | ||
- title: "Bug fixes" | ||
regexp: '^(fix|\(fix.*\)):' | ||
order: 1 | ||
- title: "Documentation updates" | ||
regexp: '^(docs|\(docs.*\)):' | ||
order: 2 | ||
- title: Others | ||
order: 999 | ||
filters: | ||
exclude: | ||
- "^(chore|\\(chore\\))" | ||
- "^(test|\\(test\\))" |
This file contains 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,20 @@ | ||
FROM golang:alpine | ||
FROM golang:1.23.1-bookworm | ||
|
||
WORKDIR /app | ||
COPY . /app | ||
RUN go build -o flow | ||
WORKDIR /workspaces | ||
ENV DISABLE_FLOW_INTERACTIVE="true" | ||
|
||
ENTRYPOINT ["./flow"] | ||
# TODO: replace with examples repo | ||
ENV WORKSPACE="flow" | ||
ENV REPO="https://github.com/jahvon/flow.git" | ||
ENV BRANCH="" | ||
|
||
COPY . flow | ||
WORKDIR /workspaces/flow | ||
RUN go build -o /usr/local/bin/flow main.go && chmod +x /usr/local/bin/flow && rm -rf /workspaces/flow | ||
|
||
WORKDIR /workspaces | ||
RUN if [ -z "$BRANCH" ]; then git clone $REPO .; else git clone -b $BRANCH $REPO .; fi | ||
RUN flow init workspace $WORKSPACE . --set | ||
|
||
ENTRYPOINT ["flow"] | ||
CMD ["get", "workspace"] |
This file contains 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
Oops, something went wrong.