How do I skip building certain docker images based on the --id
flag?
#4469
-
I'd like to use the name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser-pro
version: latest
args: --snapshot --clean --skip-sign --skip-sbom --timeout 2h --split --id otelcol-contrib This works exactly like I want it to until goreleaser starts building the docker images, where fails when it starts building images for a build that wasn't specified in the I thought I could use the - goos: linux
goarch: "386"
ids:
- otelcol
dockerfile: distributions/otelcol/Dockerfile
image_templates:
- otel/opentelemetry-collector:{{ .Version }}-386
- otel/opentelemetry-collector:latest-386
- ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector:{{ .Version }}-386
- ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector:latest-386
extra_files:
- configs/otelcol.yaml
build_flag_templates:
- --pull
- --platform=linux/386
- --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}}
use: buildx still builds even when Is what I'm trying to achieve possible? If you're interested, the backstory is here: open-telemetry/opentelemetry-collector-releases#429 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hmmmm this sounds like something that def should be improved. I will try to work on it this week, and update it here once its done. Thanks for the feedback 🙏 |
Beta Was this translation helpful? Give feedback.
just fixed this on pro, will be on the next release.
also open a pr improving handling of skipped pipes
thanks for the feedback 🙏