forked from open-telemetry/opentelemetry-collector-releases
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build ARMv6, ARMv7, and ARM64 Docker images (open-telemetry#39)
* Install ocb and yq portably * Build ARMv6, ARMv7, and ARM64 Docker images
- Loading branch information
1 parent
91da983
commit bc17ab4
Showing
5 changed files
with
135 additions
and
25 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
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
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
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
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 |
---|---|---|
@@ -1,16 +1,63 @@ | ||
dockers: | ||
- image_templates: | ||
- "${CONTAINER_BASE_NAME}:{{ .Version }}-amd64" | ||
dockerfile: "distributions/{distribution}/Dockerfile" | ||
use: buildx | ||
build_flag_templates: | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.name={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source={{.GitURL}}" | ||
- "--platform=linux/amd64" | ||
extra_files: | ||
- "configs/{distribution}.yaml" | ||
goarch: amd64 | ||
- image_templates: | ||
- "${CONTAINER_BASE_NAME}:{{ .Version }}-amd64" | ||
dockerfile: "distributions/{distribution}/Dockerfile" | ||
use: buildx | ||
build_flag_templates: | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.name={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source={{.GitURL}}" | ||
- "--platform=linux/amd64" | ||
extra_files: | ||
- "configs/{distribution}.yaml" | ||
goarch: amd64 | ||
- image_templates: | ||
- "${CONTAINER_BASE_NAME}:{{ .Version }}-armv6" | ||
dockerfile: "distributions/{distribution}/Dockerfile" | ||
use: buildx | ||
build_flag_templates: | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.name={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source={{.GitURL}}" | ||
- "--platform=linux/arm/v6" | ||
extra_files: | ||
- "configs/{distribution}.yaml" | ||
goarch: arm | ||
goarm: 6 | ||
- image_templates: | ||
- "${CONTAINER_BASE_NAME}:{{ .Version }}-armv7" | ||
dockerfile: "distributions/{distribution}/Dockerfile" | ||
use: buildx | ||
build_flag_templates: | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.name={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source={{.GitURL}}" | ||
- "--platform=linux/arm/v7" | ||
extra_files: | ||
- "configs/{distribution}.yaml" | ||
goarch: arm | ||
goarm: 7 | ||
- image_templates: | ||
- "${CONTAINER_BASE_NAME}:{{ .Version }}-arm64" | ||
dockerfile: "distributions/{distribution}/Dockerfile" | ||
use: buildx | ||
build_flag_templates: | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.name={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source={{.GitURL}}" | ||
- "--platform=linux/arm64" | ||
extra_files: | ||
- "configs/{distribution}.yaml" | ||
goarch: arm64 |