remove git username password
This commit is contained in:
parent
39f70cdada
commit
71af02818a
@ -1,3 +1,33 @@
|
|||||||
|
FROM fedora
|
||||||
|
|
||||||
|
RUN dnf -y install \
|
||||||
|
make \
|
||||||
|
golang \
|
||||||
|
bats \
|
||||||
|
btrfs-progs-devel \
|
||||||
|
device-mapper-devel \
|
||||||
|
glib2-devel \
|
||||||
|
gpgme-devel \
|
||||||
|
libassuan-devel \
|
||||||
|
libseccomp-devel \
|
||||||
|
git \
|
||||||
|
bzip2 \
|
||||||
|
go-md2man \
|
||||||
|
runc \
|
||||||
|
containers-common \
|
||||||
|
skopeo-containers
|
||||||
|
|
||||||
|
# Workaround - the first install somehow leaves the golang in a bad state
|
||||||
|
RUN dnf -y install golang
|
||||||
|
|
||||||
|
RUN mkdir /root/buildah && \
|
||||||
|
cd /root/buildah && \
|
||||||
|
git clone https://github.com/harness/buildah.git ./src/github.com/containers/buildah
|
||||||
|
|
||||||
|
RUN cd /root/buildah/src/github.com/containers/buildah && make && sudo make install
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM quay.io/buildah/stable:v1.23.0
|
FROM quay.io/buildah/stable:v1.23.0
|
||||||
|
|
||||||
USER build
|
USER build
|
||||||
@ -5,7 +35,5 @@ WORKDIR /home/build
|
|||||||
RUN export STORAGE_DRIVER=vfs
|
RUN export STORAGE_DRIVER=vfs
|
||||||
# Add plugin binary
|
# Add plugin binary
|
||||||
ADD release/linux/amd64/drone-docker /bin/
|
ADD release/linux/amd64/drone-docker /bin/
|
||||||
ADD release/linux/amd64/buildah /bin/
|
COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/
|
||||||
ADD release/linux/amd64/imgtype /bin/
|
|
||||||
ADD release/linux/amd64/copy /bin/
|
|
||||||
ENTRYPOINT ["/bin/drone-docker"]
|
ENTRYPOINT ["/bin/drone-docker"]
|
||||||
@ -17,8 +17,7 @@ GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-acr ./cmd/drone
|
|||||||
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-heroku ./cmd/drone-heroku
|
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-heroku ./cmd/drone-heroku
|
||||||
|
|
||||||
#build buildah binaries
|
#build buildah binaries
|
||||||
docker build --build-arg=GIT_USER_NAME="$(git config user.name)" --build-arg=GIT_USER_EMAIL="$(git config user.email)" \
|
docker build -f Dockerfile-build-buildah -t buildah-dev .
|
||||||
-f Dockerfile-build-buildah -t buildah-dev .
|
|
||||||
|
|
||||||
docker container create --name extract buildah-dev
|
docker container create --name extract buildah-dev
|
||||||
docker container cp extract:/root/buildah/src/github.com/containers/buildah/bin/. release/linux/amd64/
|
docker container cp extract:/root/buildah/src/github.com/containers/buildah/bin/. release/linux/amd64/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user