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

Update CI to publish docker image #40

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Update CI to publish docker image #40

merged 2 commits into from
Feb 12, 2024

Conversation

lebaudantoine
Copy link
Collaborator

@lebaudantoine lebaudantoine commented Feb 5, 2024

Purpose

Publish production Docker images for staging deployment.

Proposal

I have followed the basic usage of these configurations.
Images are pushed to this public Docker Hub repository.

It closes, #39 .

  • Create and share a team Docker Hub account.
  • Update Sops keys.
  • Enable CI for automatic Docker image publication upon merging into main.

@lebaudantoine lebaudantoine force-pushed the al-ci-docker branch 3 times, most recently from 3872c2c to fbe1fc6 Compare February 5, 2024 18:03
@lebaudantoine lebaudantoine self-assigned this Feb 5, 2024
@lebaudantoine lebaudantoine changed the title [WIP] Update CI to publish docker image Update CI to publish docker image Feb 5, 2024
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

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

🥇 Looks good and straightforward.

Could we create a staging branch or whatever the name to plug this workflow to try it ?

.github/workflows/docker-hub.yml Show resolved Hide resolved
.github/workflows/docker-hub.yml Show resolved Hide resolved
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@rouja rouja left a comment

Choose a reason for hiding this comment

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

Added Docker Hub username and password, to shared secrets.
Refactored 'Hub' CI job for clarity, using 'docker/build-push-action.'
This dedicated workflow efficiently manages image releases on push tag
and main branch merges events.

'Hub' job was broken by Chat GPT translation from Circle CI.

Images are pushed to a temporary Docker Hub repository,
lasuite/people.

Duplicated 'build-docker' job was removed from people workflow.
@lebaudantoine lebaudantoine merged commit a7d72d0 into main Feb 12, 2024
12 checks passed
@lebaudantoine lebaudantoine deleted the al-ci-docker branch February 12, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants