mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
chore: move filebrowser/dev img to separate repo (#500)
Former-commit-id: e54327906c7e4923debd36fff1dc31886440463c [formerly 72506b1b7f04ba728532ab6e94bd3e482ce38cda] [formerly 1195ba2763a02f47797bb529a7f89fa625e4c3ca [formerly 5afe2cc52d
]]
Former-commit-id: 022049582a495c141024ceaa43516541a8c72628 [formerly 6a29708b0a57ae9aad227fec96983218d50da38b]
Former-commit-id: b9b48ad2b8e5d0b3b96f2b15fefe785a830240dd
This commit is contained in:
parent
7c09473312
commit
bfbb7b5ee1
@ -28,14 +28,13 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script: ./build/build_img.sh && ./build/docker_login.sh && docker push filebrowser/filebrowser && docker logout
|
script: docker build -t filebrowser/filebrowser . && ./build/docker_login.sh && docker push filebrowser/filebrowser && docker logout
|
||||||
on:
|
on:
|
||||||
tags: false
|
tags: false
|
||||||
repo: filebrowser/filebrowser
|
repo: filebrowser/filebrowser
|
||||||
branch: master
|
branch: master
|
||||||
- stage: release
|
- stage: release
|
||||||
script:
|
script:
|
||||||
- cp dockerfiles/filebrowser Dockerfile
|
|
||||||
- ./build/docker_login.sh
|
- ./build/docker_login.sh
|
||||||
- docker run --rm -itv $(pwd):$WDIR -v /var/run/docker.sock:/var/run/docker.sock filebrowser/dev goreleaser
|
- docker run --rm -itv $(pwd):$WDIR -v /var/run/docker.sock:/var/run/docker.sock filebrowser/dev goreleaser
|
||||||
- docker logout
|
- docker logout
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
|
||||||
|
|
||||||
cp dockerfiles/filebrowser Dockerfile
|
|
||||||
docker build -t filebrowser/filebrowser .
|
|
||||||
rm -f Dockerfile
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
|
||||||
|
|
||||||
mkdir -p tmp-dev
|
|
||||||
cd tmp-dev
|
|
||||||
cp ../dockerfiles/dev Dockerfile
|
|
||||||
docker build -t filebrowser/dev .
|
|
||||||
cd ..
|
|
||||||
rm -rf tmp-dev
|
|
@ -1,34 +0,0 @@
|
|||||||
FROM golang:alpine AS base
|
|
||||||
|
|
||||||
RUN apk add -U --no-cache git && \
|
|
||||||
go get github.com/alecthomas/gometalinter && \
|
|
||||||
gometalinter --install
|
|
||||||
|
|
||||||
FROM golang:alpine
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/filebrowser/filebrowser
|
|
||||||
|
|
||||||
COPY --from=base /go/bin /go/bin
|
|
||||||
|
|
||||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
|
||||||
sed -i -e "s/v[0-9]\.[0-9]/edge/g" /etc/apk/repositories && \
|
|
||||||
apk --no-cache -U upgrade && apk --no-cache add ca-certificates yarn git curl dos2unix && \
|
|
||||||
go get github.com/GeertJohan/go.rice/rice && \
|
|
||||||
curl -fsSL -o /go/bin/dep $( \
|
|
||||||
curl -s https://api.github.com/repos/golang/dep/releases/latest \
|
|
||||||
| grep "browser_download_url.*linux-amd64\"" \
|
|
||||||
| cut -d : -f 2,3 \
|
|
||||||
| tr -d \" \
|
|
||||||
) && \
|
|
||||||
chmod +x /go/bin/dep && \
|
|
||||||
curl -sL https://git.io/goreleaser -o /go/bin/goreleaser && \
|
|
||||||
chmod +x /go/bin/goreleaser && \
|
|
||||||
curl -fsSL https://download.docker.com/linux/static/edge/x86_64/docker-18.05.0-ce.tgz | tar xvz --strip-components=1 docker/docker -C /go/bin && \
|
|
||||||
chmod +x /go/bin/docker && \
|
|
||||||
curl -fsSL $( \
|
|
||||||
curl -s https://api.github.com/repos/docker/docker-credential-helpers/releases/latest \
|
|
||||||
| grep "browser_download_url.*pass-.*-amd64" \
|
|
||||||
| cut -d : -f 2,3 \
|
|
||||||
| tr -d \" \
|
|
||||||
) | tar xv -C /go/bin && \
|
|
||||||
chmod + /go/bin/docker-credential-pass
|
|
Loading…
Reference in New Issue
Block a user