updated dockerfile to reduce filesize to 2 Gb + updated pipeline to use local ip for runners to skip cloudflare limitations
This commit is contained in:
@@ -33,9 +33,28 @@ RUN mkdir -p ${QT_INSTALL_PATH} && \
|
||||
tar -xf qt-everywhere-src-${QT_VERSION}.tar.xz && \
|
||||
rm qt-everywhere-src-${QT_VERSION}.tar.xz && \
|
||||
cd qt-everywhere-src-${QT_VERSION} && \
|
||||
./configure -prefix ${QT_INSTALL_PATH} -nomake examples -nomake tests -optimized-qmake && \
|
||||
./configure -prefix ${QT_INSTALL_PATH} \
|
||||
-nomake examples \
|
||||
-nomake tests \
|
||||
-nomake benchmarks \
|
||||
-optimized-qmake \
|
||||
-commercial -confirm-license \
|
||||
-skip qt3d \
|
||||
-skip qtdatavis3d \
|
||||
-skip qtgamepad \
|
||||
-skip qtlottie \
|
||||
-skip qtnetworkauth \
|
||||
-skip qtquicktimeline \
|
||||
-skip qtsensors \
|
||||
-skip qtspeech \
|
||||
-skip qtwebchannel \
|
||||
-skip qtwebengine \
|
||||
-skip qtwebglplugin \
|
||||
-release \
|
||||
-optimize-size && \
|
||||
make -j$(nproc) && \
|
||||
make install
|
||||
make install && \
|
||||
rm -rf ${QT_INSTALL_PATH}/qt-everywhere-src-${QT_VERSION}
|
||||
|
||||
# Install Android SDK Command Line Tools
|
||||
RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools && \
|
||||
|
||||
@@ -3,7 +3,9 @@ name: Build and Push Docker Image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
- 'main'
|
||||
paths:
|
||||
- '**/Dockerfile'
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
@@ -11,18 +13,16 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log into Gitea Container Registry
|
||||
run: |
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ vars.LOCAL_INSTANCE_IP }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.LOCAL_INSTANCE_IP }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker pull hello-world
|
||||
docker tag hello-world git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest
|
||||
#docker build -t git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest -f .devcontainer/Dockerfile .
|
||||
docker build -t ${{ secrets.LOCAL_INSTANCE_IP }}/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest -f .devcontainer/Dockerfile .
|
||||
|
||||
- name: Push Docker image
|
||||
run: |
|
||||
docker push git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest
|
||||
docker push ${{ secrets.LOCAL_INSTANCE_IP }}/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest
|
||||
Reference in New Issue
Block a user