Skip to content

Commit

Permalink
misc: move build-image to tools/build-image
Browse files Browse the repository at this point in the history
All other tools are in the tools/ repo, so it doesn't make sense for
build-image to be an exception.
  • Loading branch information
rfratto committed Mar 25, 2024
1 parent 6b29597 commit bfe1d31
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .drone/pipelines/build_images.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local secrets = import '../util/secrets.jsonnet';
local locals = {
on_merge: {
ref: ['refs/heads/main'],
paths: { include: ['build-image/**'] },
paths: { include: ['tools/build-image/**'] },
},
on_build_image_tag: {
event: ['tag'],
Expand Down Expand Up @@ -36,7 +36,7 @@ local locals = {
'docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD',
'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes',
'docker buildx create --name multiarch --driver docker-container --use',
'docker buildx build --build-arg="GO_RUNTIME=golang:1.22.1-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/agent-build-image:$IMAGE_TAG ./build-image',
'docker buildx build --build-arg="GO_RUNTIME=golang:1.22.1-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/agent-build-image:$IMAGE_TAG ./tools/build-image',
],
}],
volumes: [{
Expand All @@ -59,7 +59,7 @@ local locals = {
'docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD',
'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes',
'docker buildx create --name multiarch --driver docker-container --use',
'docker buildx build --build-arg="GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.22.1-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/agent-build-image:$IMAGE_TAG ./build-image',
'docker buildx build --build-arg="GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.22.1-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/agent-build-image:$IMAGE_TAG ./tools/build-image',
],
}],
volumes: [{
Expand All @@ -83,7 +83,7 @@ local locals = {
// and not by Windows (where the syntax obviously wouldn't work).
'$IMAGE_TAG="${DRONE_TAG##build-image/v}-windows"',
'docker login -u $Env:DOCKER_LOGIN -p $Env:DOCKER_PASSWORD',
'docker build -t grafana/agent-build-image:$IMAGE_TAG ./build-image/windows',
'docker build -t grafana/agent-build-image:$IMAGE_TAG ./tools/build-image/windows',
'docker push grafana/agent-build-image:$IMAGE_TAG',
],
}],
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-linux-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check Linux build image
on:
pull_request:
paths:
- 'build-image/*'
- 'tools/build-image/*'

jobs:
check-linux-build-image:
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Create test Linux build image
uses: docker/build-push-action@v5
with:
context: ./build-image
context: ./tools/build-image
push: false
tags: grafana/alloy-build-image:latest
build-args: |
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Create test Linux build image for boring crypto
uses: docker/build-push-action@v5
with:
context: ./build-image
context: ./tools/build-image
push: false
tags: grafana/alloy-build-image:latest
build-args: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-windows-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check Windows build image
on:
pull_request:
paths:
- 'build-image/windows/**'
- 'tools/build-image/windows/**'

jobs:
check-windows-build-image:
Expand All @@ -19,4 +19,4 @@ jobs:
tags: latest
registry: docker.io
pushImage: false
dockerfile: ./build-image/windows/Dockerfile
dockerfile: ./tools/build-image/windows/Dockerfile
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bfe1d31

Please sign in to comment.