Skip to content

Commit

Permalink
Use gitea/gitea-base as base
Browse files Browse the repository at this point in the history
  • Loading branch information
sapk committed Jun 16, 2017
1 parent edc5315 commit da5f6a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine:3.5
MAINTAINER Thomas Boerger <thomas@webhippie.de>
FROM gitea/gitea-base
LABEL maintainer "Thomas Boerger <thomas@webhippie.de>"

EXPOSE 22 3000

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ docker:
docker build -t $(DOCKER_REF) .

.PHONY: docker-multi-arch-push-manifest
docker-multi-arch-push-manifest: DOCKER_MANIFEST ?= docker/manifest/base.yml #Manifest to update
docker-multi-arch-push-manifest: DOCKER_MANIFEST ?= docker/manifest/base.yml
docker-multi-arch-push-manifest:
@hash manifest-tool > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/estesp/manifest-tool; \
fi
$(SED_INPLACE) "s;gitea/gitea;$(DOCKER_IMAGE);g" $(DOCKER_MANIFEST) #Replace if using custom image name
@manifest-tool --docker-cfg $HOME/.docker/ push from-spec $(DOCKER_MANIFEST) #Up new references
$(SED_INPLACE) "s;$(DOCKER_IMAGE);gitea/gitea;g" $(DOCKER_MANIFEST) #Revert back config
$(SED_INPLACE) "s;gitea/gitea;$(DOCKER_IMAGE);g" $(DOCKER_MANIFEST)
@manifest-tool push from-spec $(DOCKER_MANIFEST)
$(SED_INPLACE) "s;$(DOCKER_IMAGE);gitea/gitea;g" $(DOCKER_MANIFEST)

.PHONY: release
release: release-dirs release-windows release-linux release-darwin release-copy release-check
Expand Down
2 changes: 1 addition & 1 deletion docker/manifest/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ manifests:
platform:
architecture: amd64
os: linux
- image:multiarch/alpine:x86-latest-stable
- image: multiarch/alpine:x86-latest-stable
platform:
architecture: 386
os: linux
Expand Down

0 comments on commit da5f6a6

Please sign in to comment.