-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use alloy for new backend (#4)
- Loading branch information
Showing
7 changed files
with
20 additions
and
3,447 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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: "backend/go.mod" | ||
go-version-file: "backend/alloy/go.mod" | ||
cache: true | ||
- uses: ko-build/[email protected] | ||
with: | ||
|
@@ -42,13 +42,15 @@ jobs: | |
- name: Prepare | ||
run: | | ||
echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV | ||
mkdir backend/alloy/convert-web | ||
cp backend/main.go backend/alloy/convert-web | ||
- name: Build and push | ||
working-directory: backend | ||
working-directory: backend/alloy/convert-web | ||
run: | | ||
export KO_DOCKER_REPO=ghcr.io/grafana/alloy-configurator-backend | ||
export KO_DOCKER_REPO=ghcr.io/grafana/agent-configurator-backend | ||
ko build --sbom=none --bare --platform linux/arm64,linux/arm/v7,linux/amd64 -t ${{ github.ref_name }} \ | ||
--image-label org.opencontainers.image.title=alloy-configurator-backend \ | ||
--image-label org.opencontainers.image.description="Backend for the alloy-configurator" \ | ||
--image-label org.opencontainers.image.title=agent-configurator-backend \ | ||
--image-label org.opencontainers.image.description="Backend for the agent-configurator" \ | ||
--image-label org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }} \ | ||
--image-label org.opencontainers.image.revision=${{ github.sha }} \ | ||
--image-label org.opencontainers.image.version=${{ github.ref_name }} \ | ||
|
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,3 @@ | ||
[submodule "backend/alloy"] | ||
path = backend/alloy | ||
url = https://github.com/grafana/alloy |
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 @@ | ||
alloy/converter-web/main.go: main.go | ||
mkdir -p alloy/converter-web | ||
cp main.go alloy/converter-web | ||
|
||
converter-web: alloy/converter-web/main.go | ||
cd alloy && go build -o ../converter-web ./converter-web |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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