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

Auto-update base docker image #3

Merged
merged 4 commits into from
Nov 20, 2022
Merged

Conversation

josecols
Copy link
Member

@josecols josecols commented Nov 19, 2022

This PR introduces a new GitHub workflow that checks daily if MeTA's base image (ubuntu:22.04) has changes (e.g., security updates). Upon completion, it will trigger the main Docker image build. With this, we are ensuring an up-to-date image version if:

  • The MeTA code changes.
  • The OS image changes.

One caveat of the new workflow is that the cron scheduler only runs on the default branch. So, we will need to set submodule/meta as the main branch or merge all changes to master.

@josecols josecols requested a review from dmcguire81 November 19, 2022 06:28
RUN apt install -y software-properties-common
RUN apt-get install -y git cmake libjemalloc-dev zlib1g-dev
RUN apt-get install -y clang-14 lld-14 libc++-14-dev libc++abi-14-dev
RUN apt-get update && apt-get install -y \
Copy link
Member Author

Choose a reason for hiding this comment

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

with:
base-image: library/ubuntu:22.04
image: josecols/meta:3.0.2
- name: Abort
Copy link
Member Author

Choose a reason for hiding this comment

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

By aborting this workflow, we signal to the main action, Docker Image CI, that there are no pending updates and avoid execution.

Copy link
Collaborator

@dmcguire81 dmcguire81 left a comment

Choose a reason for hiding this comment

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

I updated the default branch to submodule/metapy.

@josecols josecols merged commit 001b6df into submodule/metapy Nov 20, 2022
@dmcguire81 dmcguire81 deleted the task/auto-update branch December 3, 2022 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants