mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
updating some folders names
This commit is contained in:
@@ -38,14 +38,14 @@ COPY . .
|
||||
# Installs project dependencies.
|
||||
RUN go get -d -v ./...
|
||||
|
||||
ENTRYPOINT ["_ci/docker-entrypoint.sh"]
|
||||
ENTRYPOINT [".ci/docker-entrypoint.sh"]
|
||||
{{- else }}
|
||||
|
||||
COPY _build/gotenberg /usr/bin/gotenberg
|
||||
COPY .build/gotenberg /usr/bin/gotenberg
|
||||
RUN ln -s /usr/bin/gotenberg /usr/local/bin/gotenberg
|
||||
|
||||
WORKDIR /gotenberg
|
||||
COPY gotenberg.yml /gotenberg/gotenberg.yml
|
||||
COPY .build/gotenberg.yml /gotenberg/gotenberg.yml
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["gotenberg"]
|
||||
@@ -11,18 +11,18 @@ if [[ "$VERSION" == "snapshot" ]]; then
|
||||
go test -race -cover $d;
|
||||
done
|
||||
else
|
||||
echo "" > ./_ci/coverage.txt;
|
||||
echo "" > ./.ci/coverage.txt;
|
||||
for d in $(go list ./... | grep -v vendor); do
|
||||
go test -race -coverprofile=profile.out -covermode=atomic $d;
|
||||
if [ -f profile.out ]; then
|
||||
cat profile.out >> ./_ci/coverage.txt;
|
||||
cat profile.out >> ./.ci/coverage.txt;
|
||||
rm profile.out;
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Builds the Linux binary.
|
||||
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" && mv gotenberg _build/;
|
||||
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" && mv gotenberg .build/;
|
||||
|
||||
# Bye!
|
||||
exit 0;
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
.DS_Store
|
||||
_ci/coverage.txt
|
||||
.ci/coverage.txt
|
||||
@@ -24,11 +24,11 @@ RUN echo "deb http://httpredir.debian.org/debian/ stretch main contrib non-free"
|
||||
# | All Gotenberg related stuff.
|
||||
# |
|
||||
|
||||
COPY _build/gotenberg /usr/bin/gotenberg
|
||||
COPY .build/gotenberg /usr/bin/gotenberg
|
||||
RUN ln -s /usr/bin/gotenberg /usr/local/bin/gotenberg
|
||||
|
||||
WORKDIR /gotenberg
|
||||
COPY gotenberg.yml /gotenberg/gotenberg.yml
|
||||
COPY .build/gotenberg.yml /gotenberg/gotenberg.yml
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["gotenberg"]
|
||||
@@ -36,4 +36,4 @@ COPY . .
|
||||
# Installs project dependencies.
|
||||
RUN go get -d -v ./...
|
||||
|
||||
ENTRYPOINT ["_ci/docker-entrypoint.sh"]
|
||||
ENTRYPOINT [".ci/docker-entrypoint.sh"]
|
||||
@@ -8,15 +8,15 @@ tasks:
|
||||
- use: generate
|
||||
short: Generates all files from blueprints
|
||||
run:
|
||||
- BRANCH="$(git symbolic-ref --short HEAD)"; orbit generate -f _blueprints/README.blueprint.md -o README.md -p "Branch,${BRANCH}"
|
||||
- orbit generate -f _blueprints/Dockerfile.blueprint -o Dockerfile.ci -p "Image,CI"
|
||||
- orbit generate -f _blueprints/Dockerfile.blueprint -o Dockerfile -p "Image,MAIN"
|
||||
- BRANCH="$(git symbolic-ref --short HEAD)"; orbit generate -f .blueprints/README.blueprint.md -o README.md -p "Branch,${BRANCH}"
|
||||
- orbit generate -f .blueprints/Dockerfile.blueprint -o Dockerfile.ci -p "Image,CI"
|
||||
- orbit generate -f .blueprints/Dockerfile.blueprint -o Dockerfile -p "Image,MAIN"
|
||||
|
||||
- use: ci
|
||||
short: Runs CI process inside a container
|
||||
run:
|
||||
- docker build -t gotenberg:ci -f Dockerfile.ci .
|
||||
- docker run --rm -e "VERSION={{ .Orbit.Version }}" -v "$(pwd)/_ci:/go/src/github.com/thecodingmachine/gotenberg/_ci" -v "$(pwd)/_build:/go/src/github.com/thecodingmachine/gotenberg/_build" gotenberg:ci
|
||||
- docker run --rm -e "VERSION={{ .Orbit.Version }}" -v "$(pwd)/.ci:/go/src/github.com/thecodingmachine/gotenberg/.ci" -v "$(pwd)/.build:/go/src/github.com/thecodingmachine/gotenberg/.build" gotenberg:ci
|
||||
|
||||
- use: build
|
||||
short: Builds the main Docker image
|
||||
|
||||
Reference in New Issue
Block a user