This commit is contained in:
parent
264270213e
commit
5553fdb38c
@ -11,7 +11,7 @@ steps:
|
||||
image: alexviscreanu/buildx
|
||||
commands:
|
||||
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||
- docker buildx create --use --name crosscomp --buildkitd-flags '--debug'
|
||||
- docker buildx create --use --name crosscomp
|
||||
- docker buildx inspect --bootstrap
|
||||
- docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD registry.chrz.de
|
||||
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=true --progress tty -t registry.chrz.de/public/hello-ci .
|
||||
|
@ -10,6 +10,7 @@ COPY main.cpp /app/main.cpp
|
||||
WORKDIR /app
|
||||
RUN g++ -o main main.cpp
|
||||
|
||||
|
||||
# run stage
|
||||
FROM ubuntu:18.04 AS run
|
||||
ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin
|
||||
@ -19,6 +20,7 @@ RUN apt-get update && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=build /app/main /app/main
|
||||
|
||||
COPY run.sh /app/run.sh
|
||||
RUN chmod +x /app/run.sh
|
||||
CMD ["/app/run.sh"]
|
Loading…
Reference in New Issue
Block a user