Skip to content

Commit

Permalink
Debug docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
kuznetsss committed Dec 11, 2023
1 parent acf359d commit ab1b46f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/update_docker_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
paths:
- 'docker/ci/**'
workflow_dispatch:
pull_request:
branches: [develop]
paths:
- 'docker/ci/**'
- .github/workflows/update_docker_ci.yml

jobs:
build:
Expand All @@ -16,11 +21,11 @@ jobs:
env:
DOCKERHUB_REPO: rippleci
steps:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PW }}
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USER }}
# password: ${{ secrets.DOCKERHUB_PW }}

- uses: actions/checkout@v4

Expand All @@ -31,6 +36,6 @@ jobs:
docker build . -t clio_ci --progress=plain --platform=${{ matrix.target_platform }}
for tag in "$GITHUB_SHA" "latest" ; do
docker tag clio_ci ${DOCKERHUB_REPO}/clio_ci:${tag}
docker push ${DOCKERHUB_REPO}/clio_ci:${tag}
# docker push ${DOCKERHUB_REPO}/clio_ci:${tag}
done
14 changes: 7 additions & 7 deletions docker/ci/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ ENV GCC_VERSION=11 \
GH_VERSION=2.40.0

# Add repositories
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends --no-install-suggests gnupg wget curl software-properties-common \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - \
&& apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' \
&& echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-${LLVM_TOOLS_VERSION} main" >> /etc/apt/sources.list \
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN apt-get -qq update
RUN apt-get -qq install -y --no-install-recommends --no-install-suggests gnupg wget curl software-properties-common
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add -
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
RUN echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-${LLVM_TOOLS_VERSION} main" >> /etc/apt/sources.list
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add

# Install packages
RUN apt update -qq \
Expand Down

0 comments on commit ab1b46f

Please sign in to comment.