Skip to content
Snippets Groups Projects
Commit 6d97aebc authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

cleans CI.

parent 2d7a20f9
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,8 @@ jobs: ...@@ -43,6 +43,8 @@ jobs:
# uses: docker/setup-qemu-action@v2 # uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
with:
driver: docker
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
......
...@@ -11,6 +11,10 @@ ARG DOCKER_CONFIG="/usr/local/lib/docker/cli-plugins" ...@@ -11,6 +11,10 @@ ARG DOCKER_CONFIG="/usr/local/lib/docker/cli-plugins"
USER root USER root
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"
# Copy the list artefacts to install # Copy the list artefacts to install
# Ubuntu and PIP packages, ... # Ubuntu and PIP packages, ...
COPY Artefacts/ /tmp/Artefacts/ COPY Artefacts/ /tmp/Artefacts/
......
#!/bin/bash docker build --progress=plain -t brunoe/jupyter-base:develop .
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. ${DIR}/env.sh
#DOCKER_BUILDKIT=1 docker build \
docker buildx build \
--file Dockerfile \
-t ${BASE}:$SHA \
`[[ "$BRANCH" != "master" ]] && echo -t ${BASE}:$BRANCH` \
`[[ "$BRANCH" == "master" ]] && echo -t ${BASE}:latest` $@ \
.
#!/bin/bash
REGISTRY=brunoe
IMAGE_NAME=${PWD##*/}
CURRENT=`pwd`
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
BASE=${REGISTRY}/${IMAGE_NAME}
BRANCH=`git rev-parse --abbrev-ref HEAD|tr '/' '_' `
SHA=`git log -1 --pretty=%h`
cd $CURRENT
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo $DIR
. ${DIR}/env.sh
BASE=${REGISTRY}/${IMAGE_NAME}
BRANCH=`git rev-parse --abbrev-ref HEAD`
echo Branche:$BRANCH
docker push ${BASE} --all-tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment