-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
129 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
**/.cache | ||
**/.dockerignore | ||
**/.DS_Store | ||
**/.env | ||
**/.git | ||
**/.github | ||
**/.gitignore | ||
**/.vscode | ||
**/bin | ||
**/dist | ||
**/docker-compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
CHANGELOG.md | ||
README.md |
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,22 @@ | ||
name: Package | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- tdstein/release | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: extractions/setup-just@v1 | ||
- uses: docker/setup-buildx-action@v2 | ||
- run: just image | ||
- run: just build | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: | | ||
bin/**/*.bin | ||
bin/**/*.exe |
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 |
---|---|---|
@@ -1,35 +1,22 @@ | ||
# To build and run shell: `docker run -it $(docker build -q .)` from within `build/package` subdirectory | ||
FROM centos:7 | ||
FROM rockylinux:8 | ||
|
||
RUN yum update -y \ | ||
&& yum install -y curl git openssl mailcap tzdata xz nodejs xorg-x11-server-Xvfb gtk2-devel gtk3-devel libnotify-devel GConf2 nss libXScrnSaver alsa-lib python3 \ | ||
&& yum groupinstall -y "Development Tools" | ||
RUN dnf -y update | ||
RUN dnf -y install\ | ||
curl\ | ||
tar | ||
|
||
RUN export GOLANG_VERSION=1.21.0 \ | ||
&& export GOLANG_DOWNLOAD_SHA256=d0398903a16ba2232b389fb31032ddf57cac34efda306a0eebac34f0965a0742 \ | ||
&& curl -fsSL "https://go.dev/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" -o golang.tar.gz \ | ||
&& echo "${GOLANG_DOWNLOAD_SHA256} golang.tar.gz" | sha256sum -c - \ | ||
&& tar -C /usr/local -xzf golang.tar.gz \ | ||
&& rm golang.tar.gz | ||
ENV PATH="$PATH:/usr/local/go/bin" | ||
RUN dnf -y install epel-release | ||
RUN dnf -y install ShellCheck | ||
|
||
RUN export GOPATH=/usr/local/gotools \ | ||
&& go install -v mvdan.cc/sh/v3/cmd/shfmt@latest \ | ||
&& go install -v golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest \ | ||
&& go install honnef.co/go/tools/cmd/staticcheck@latest | ||
ENV PATH="$PATH:/usr/local/gotools/bin" | ||
RUN dnf -y module enable nodejs:18 | ||
RUN dnf -y module install nodejs:18 | ||
|
||
RUN export SHELLCHECK_VERSION=0.9.0 \ | ||
&& curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz \ | ||
| tar -C /usr/local/bin -xJ --strip=1 shellcheck-v${SHELLCHECK_VERSION}/shellcheck \ | ||
&& chown $(id -u):$(id -g) /usr/local/bin/shellcheck | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin | ||
|
||
# task runner | ||
RUN export JUST_VERSION=1.14.0 \ | ||
&& curl -fsSL https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-x86_64-unknown-linux-musl.tar.gz \ | ||
| tar -C /usr/local/bin -xz just | ||
RUN curl -L -O https://go.dev/dl/go1.21.1.linux-amd64.tar.gz | ||
RUN rm -rf /usr/local/go | ||
RUN tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz | ||
ENV PATH="$PATH:/usr/local/go/bin" | ||
|
||
# UX stack | ||
RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash - | ||
RUN yum -y install nodejs | ||
RUN node -v && npm version && npx -v | ||
RUN go env -w GOBIN=/usr/local/go/bin | ||
RUN go install honnef.co/go/tools/cmd/staticcheck@latest |
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 |
---|---|---|
|
@@ -14,5 +14,5 @@ func UserAgent() string { | |
} | ||
|
||
func DevelopmentBuild() bool { | ||
return Mode == "development" | ||
return Mode == "dev" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker pull -q ghcr.io/choffmeister/git-describe-semver:latest > /dev/null | ||
docker run --rm -v $PWD:/workdir ghcr.io/choffmeister/git-describe-semver:latest \ | ||
-drop-prefix \ | ||
--fallback v0.0.0 |
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