Skip to content

Commit

Permalink
fix: update platform configuration in workflow and bake files
Browse files Browse the repository at this point in the history
Co-Authored-By: Arnaud Lheureux <[email protected]>
  • Loading branch information
arnaudlh committed Feb 22, 2025
1 parent 8f91559 commit 781c353
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/roverlight-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ jobs:
docker buildx bake \
-f docker-bake-agents.hcl \
-f docker-bake.override.hcl \
--set *.platform=${{ matrix.platform }} \
--set *.args.versionRover="ghcr.io/${{ github.repository }}/roverlight:${{ steps.tag.outputs.date }}" \
--set *.args.versionRover="${{ env.REGISTRY }}/${{ github.repository }}/roverlight:${{ steps.tag.outputs.date }}" \
--set *.registry="${{ env.REGISTRY }}/${{ github.repository }}" \
--set *.tag="${{ steps.tag.outputs.date }}" \
--set *.tag_strategy="${{ matrix.platform }}" \
--set *.platform="${{ matrix.platform }}" \
--push \
rover_agents
Expand Down
8 changes: 4 additions & 4 deletions docker-bake-agents.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ target "github" {
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64","linux/arm64"]
platforms = platform
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}
Expand All @@ -48,7 +48,7 @@ target "azdo" {
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64","linux/arm64"]
platforms = platform
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}
Expand All @@ -61,7 +61,7 @@ target "tfc" {
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64" ]
platforms = "${platform}"
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}
Expand All @@ -73,7 +73,7 @@ target "gitlab" {
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64","linux/arm64"]
platforms = platform
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}

0 comments on commit 781c353

Please sign in to comment.