Skip to content

Commit

Permalink
Release container don't use qpress
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanLiviuVarzaru committed Aug 29, 2024
1 parent 6640807 commit 3fa7ed2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/bbw_build_container_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ on:
required: false
type: string
default: 'true'
noqpress:
required: false
type: string
default: 'false'

jobs:
build:
Expand Down Expand Up @@ -71,13 +75,19 @@ jobs:
echo "IMG=${TAG_TMP/:/}" >>$GITHUB_ENV
fi
echo "REPO=bb-worker" >>$GITHUB_ENV
- name: Generate Dockerfile and necessary files
if: ${{ env.MAIN_BRANCH == 'false' }}
run: |
cd ${{ env.WORKDIR }}
cat ${{ inputs.dockerfile }} qpress.Dockerfile buildbot-worker.Dockerfile >$GITHUB_WORKSPACE/Dockerfile
cp -r qpress $GITHUB_WORKSPACE
if [ "${{ inputs.noqpress }}" == "true" ]; then
cat ${{ inputs.dockerfile }} buildbot-worker.Dockerfile >$GITHUB_WORKSPACE/Dockerfile
else
cat ${{ inputs.dockerfile }} qpress.Dockerfile buildbot-worker.Dockerfile >$GITHUB_WORKSPACE/Dockerfile
cp -r qpress $GITHUB_WORKSPACE
fi
if [ "${{ inputs.nogalera }}" == true ]; then
sed -i -e '/ci.mariadb.org\/galera/d' -e '/galera-4/d' -e '/WSREP_PROVIDER/d' $GITHUB_WORKSPACE/Dockerfile
fi
Expand Down Expand Up @@ -149,9 +159,11 @@ jobs:
docker pull -q --platform "$platform" "$image"
docker run -i "$image" buildbot-worker --version
docker run -i "$image" dumb-init twistd --pidfile= -y /home/buildbot/buildbot.tac
docker run -u root -i "$image" bash -c "touch /tmp/foo && qpress -r /tmp /root/qpress.qp"
if [ "${{ inputs.noqpress }}" == "false" ]; then
docker run -u root -i "$image" bash -c "touch /tmp/foo && qpress -r /tmp /root/qpress.qp"
fi
done
- name: Check for registry credentials
run: |
missing=()
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/build-container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/debian-release.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-container-release.yml
- .github/workflows/bbw_build_container_template.yml
- 'ci_build_images/debian-release.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-container-release.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand All @@ -32,4 +32,5 @@ jobs:
image: ${{ matrix.image }}
platforms: ${{ matrix.platforms }}
tag: ${{ matrix.tag }}
noqpress: 'true'
secrets: inherit

0 comments on commit 3fa7ed2

Please sign in to comment.