Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build discourse/base and discourse/discourse_test image for bookworm #823

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

tgxworld
Copy link
Contributor

@tgxworld tgxworld commented Aug 8, 2024

We need to upgrade to bookworm because bullseye is EOL. This commit when merged into branch will push the following images to Docker hub:

  1. discourse/base:slim-bookworm
  2. discourse/base:release-bookworm
  3. discourse/discourse_test:slim-bookworm
  4. discourse/discourse_test:slim-browsers-bookworm
  5. discourse/discourse_test:release-bookworm

@tgxworld tgxworld force-pushed the upgrade_to_debian_bookworm branch 11 times, most recently from b0de515 to a0bf234 Compare August 8, 2024 07:11
We need to upgrade to bookworm because bullseye is EOL.
@tgxworld tgxworld force-pushed the upgrade_to_debian_bookworm branch from a0bf234 to 71c34b4 Compare August 8, 2024 07:16
else
# Use backports instead of compiling it
apt -y -q install -t bullseye-backports libheif1 libaom-dev libheif-dev
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libheif1 libheif-dev are not part of bullseye-backport

Comment on lines +34 to +37
RUN install -d /usr/share/postgresql-common/pgdg &&\
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc &&\
echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${DEBIAN_RELEASE}-pgdg main" > /etc/apt/sources.list.d/pgdg.list

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -145,6 +190,47 @@ jobs:
docker push discourse/discourse_test:slim
docker push discourse/discourse_test:slim-browsers
docker push discourse/discourse_test:release
test_bookworm:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only work on the main branch since the image has not been pushed to Dockerhub

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also a simplified version of the test job.

@@ -104,6 +104,51 @@ jobs:
run: |
docker tag discourse/base:release${{ steps.arch-helper.outputs.arch_postfix_dash }} discourse/base:aarch64
docker push discourse/base:aarch64
base_bookworm:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a simplified version of the base job.

runs-on: ubuntu-20.04${{ ((github.event_name != 'schedule') && '-8core') || '' }}
timeout-minutes: ${{ github.event_name != 'schedule' && 30 }}
steps:
- uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the latest version of checkout is v4. we could add a dependabot config to this repo to bump this stuff for us

@tgxworld tgxworld merged commit 21a0351 into main Aug 8, 2024
5 of 6 checks passed
@tgxworld tgxworld deleted the upgrade_to_debian_bookworm branch August 8, 2024 08:29
@tgxworld
Copy link
Contributor Author

tgxworld commented Aug 8, 2024

Thank you for reviewing @CvX 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants