Skip to content

Commit

Permalink
hof/fmt: disable alpine based images and just create one family
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Sep 19, 2022
1 parent 32c6af3 commit da2e4b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fmt.cue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package workflows

import "github.com/hofstadter-io/ghacue"

_bases: ["debian", "alpine"]
_bases: ["debian"]
_formatters: [
"prettier",
"black",
Expand Down
4 changes: 4 additions & 0 deletions formatters/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ TOOLS := $(shell ls tools/)
tools:
@echo $(TOOLS)

PUSH=
PLATFORMS=linux/amd64

# make image.*
IMAGES=$(addsuffix .image,$(TOOLS))
.PHONY: images
images: $(IMAGES)
$(IMAGES):
docker build -t hofstadter/fmt-$(@:%.image=%):$(FMTR_TAG) -f tools/$(@:%.image=%)/Dockerfile.debian tools/$(@:%.image=%)
docker build -t hofstadter/fmt-$(@:%.image=%):$(FMTR_TAG)-alpine -f tools/$(@:%.image=%)/Dockerfile.alpine tools/$(@:%.image=%)

MARCHS_DEB=$(addsuffix .march.debian,$(TOOLS))
marchs.debian: $(MARCHS_DEB)
Expand Down
2 changes: 1 addition & 1 deletion formatters/tools/prettier/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk add --no-cache --virtual .build-deps \
gcc \
git \
make \
ruby-dev \
ruby ruby-dev ruby-bundler ruby-json ruby-irb ruby-rake ruby-bigdecimal \
&& apk del .build-deps \
&& rm -rf /root/.cache

Expand Down

0 comments on commit da2e4b5

Please sign in to comment.