Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

update Git Action

patcher99cea4bdc9a779
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/publish.yml
similarity index 94%
rename from .github/workflows/docker-publish.yml
rename to .github/workflows/publish.yml
index 737811a0..67ed0478 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/publish.yml
@@ -12,7 +12,7 @@ permissions:
contents: write
jobs:
- docker:
+ ingester-docker:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.set-version-output.outputs.version }}
@@ -60,7 +60,8 @@ jobs:
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
- context: .
+ context: ./src/ingester/
+ file: ./src/ingester/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@@ -77,9 +78,9 @@ jobs:
id: set-version-output
run: echo "::set-output name=version::${{ env.DOCKER_METADATA_OUTPUT_VERSION }}"
- binaries:
+ ingester-binaries:
name: Publish binaries
- needs: docker
+ needs: ingester-docker
runs-on: ubuntu-latest
strategy:
matrix:
@@ -110,5 +111,5 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: src/ingester-${{ matrix.platform.os }}-${{ matrix.platform.arch }}
asset_name: ingester-${{ matrix.platform.os }}-${{ matrix.platform.arch }}
- tag: ${{ needs.docker.outputs.version }}
+ tag: ${{ needs.ingester-docker.outputs.version }}
overwrite: true
diff --git a/Dockerfile b/src/ingester/Dockerfile
similarity index 81%
rename from Dockerfile
rename to src/ingester/Dockerfile
index c7c2098b..c59846af 100644
--- a/Dockerfile
+++ b/src/ingester/Dockerfile
@@ -4,14 +4,14 @@ FROM golang:1.21.5
# Set the working directory to /app
WORKDIR /app
-COPY src/go.mod .
-COPY src/go.sum .
+COPY go.mod .
+COPY go.sum .
# Download dependencies in a separate layer to leverage Docker cache
RUN go mod download
# Now copy the rest of your source code.
-COPY src .
+COPY . .
# Build the Go application and name the executable as "ingester"
RUN go build -o ingester
\ No newline at end of file