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

Rework docker-testbed workflow #5785

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

FirelightFlagboy
Copy link
Contributor

@FirelightFlagboy FirelightFlagboy commented Nov 13, 2023

  • Use a new format for the image tag:

    The new format is {{ version }}-{{ YYYYMMDD }}.sha.{{ short-sha }}.
    You have a step that summary the pushed image.

  • Rename the workflow from publish-testbed to docker-testbed

    To harmonize with the yet to exist workflow to build the docker image
    for the parsec backend.

  • Prevent concurrency run.

  • Use the gihtub action docker/setup-buildx-action to setup build-kit
    engine for docker, that provide support for the cache system & multi
    platforms builds.

  • Use the GitHub action docker/metadata-actions:

    • Generate the GitHub tags for us.
    • Handle the image name (would could setup to push to ghcr.io &
      docker.io in the future).
  • Use the GitHub action docker/build-publish-actions:

    • Simplify configuring the docker build phase.
    • Leverage the GitHub actions cache.
    • Would allow to build for multiple platforms.
    • Allow to simplify push the generate image with its multiple tags.
  • Rework the test part, mainly split into 3 steps instead of 1.

@FirelightFlagboy FirelightFlagboy requested a review from a team as a code owner November 13, 2023 15:42
@FirelightFlagboy FirelightFlagboy force-pushed the rework-publish-testbed branch 7 times, most recently from 47e82e5 to fd55d92 Compare November 13, 2023 16:21
Copy link
Contributor

@mmmarcos mmmarcos left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of comments

.github/workflows/docker-testbed.yml Outdated Show resolved Hide resolved
.github/workflows/docker-testbed.yml Outdated Show resolved Hide resolved
@FirelightFlagboy FirelightFlagboy force-pushed the rework-publish-testbed branch 4 times, most recently from c6ac6f8 to 849e1bf Compare November 15, 2023 10:20
@FirelightFlagboy FirelightFlagboy added the I-CICD Impact: CI/CD, automated stuff on this repo label Nov 15, 2023
- Use a new format for the image tag:

  The new format is `{{ version }}-{{ YYYYMMDD }}.sha.{{ short-sha }}`.
  You have a step that summary the pushed image.

- Rename the workflow from `publish-testbed` to `docker-testbed`

  To harmonize with the yet to exist workflow to build the docker image
  for the parsec backend.

- Prevent concurrency run.

- Use the gihtub action `docker/setup-buildx-action` to setup build-kit
  engine for docker, that provide support for the cache system & multi
  platforms builds.

- Use the GitHub action `docker/metadata-actions`:

  - Generate the GitHub tags for us.
  - Handle the image name (would could setup to push to `ghcr.io` &
    `docker.io` in the future).

- Use the GitHub action `docker/build-publish-actions`:

  - Simplify configuring the docker build phase.
  - Leverage the GitHub actions cache.
  - Would allow to build for multiple platforms.
  - Allow to simplify push the generate image with its multiple tags.

- Rework the test part, mainly split into 3 steps instead of 1.

Co-authored-by: Marcos Medrano <[email protected]>
@FirelightFlagboy FirelightFlagboy added this pull request to the merge queue Nov 15, 2023
Merged via the queue into master with commit 86ddeb1 Nov 15, 2023
11 checks passed
@FirelightFlagboy FirelightFlagboy deleted the rework-publish-testbed branch November 15, 2023 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-CICD Impact: CI/CD, automated stuff on this repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants