diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-01-19 13:19:08 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-01-19 13:19:08 -0500 |
| commit | 7d4966f904485a3e18227bf607ae67753e18860c (patch) | |
| tree | a0b0765cba68559fd7f8ebafd125433314593a2b | |
| parent | 0c247a794cc33dd6a4fee45c943e0e289758080f (diff) | |
| download | x-7d4966f904485a3e18227bf607ae67753e18860c.tar.xz x-7d4966f904485a3e18227bf607ae67753e18860c.zip | |
embed version better?
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | .dockerignore | 1 | ||||
| -rw-r--r-- | .github/workflows/earthly.yml | 4 | ||||
| -rw-r--r-- | Earthfile | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/.dockerignore b/.dockerignore index f248abe..1135171 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ -.git bin kube
\ No newline at end of file diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml index 2768fbd..5ca54d8 100644 --- a/.github/workflows/earthly.yml +++ b/.github/workflows/earthly.yml @@ -40,9 +40,9 @@ jobs: if: github.event_name != 'pull_request' id: build-and-push run: | - earthly --org me-2625 --sat alpha --ci --push +all --VERSION=$(git describe --tags) + earthly --org me-2625 --sat alpha --ci --push +all - name: Build Docker image if: github.event_name == 'pull_request' id: build run: | - earthly --org me-2625 --sat alpha --ci +all --VERSION=$(git describe --tags)
\ No newline at end of file + earthly --org me-2625 --sat alpha --ci +all
\ No newline at end of file @@ -26,9 +26,8 @@ deps: everything: FROM +deps - ARG VERSION=no-version-error - COPY . . + ARG VERSION=$(git describe --tags --always --dirty) RUN mkdir -p bin RUN --mount=type=cache,target=/root/.cache GOBIN=$(pwd)/bin go install -ldflags="-X within.website/x.Version="${VERSION} ./... |
