Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Build Docker images for using worker-mode Synapse in automated test tools. #11852

Closed
wants to merge 3 commits into from

Conversation

reivilibre
Copy link
Contributor

This is wanted by mx-tester.

@reivilibre reivilibre force-pushed the rei/docker_workers_for_testing branch from df34a07 to a6d034f Compare January 28, 2022 12:34
@reivilibre reivilibre force-pushed the rei/docker_workers_for_testing branch from a6d034f to e940c62 Compare January 28, 2022 12:37
@reivilibre reivilibre marked this pull request as ready for review January 28, 2022 12:50
@reivilibre reivilibre requested a review from a team as a code owner January 28, 2022 12:50
run: docker buildx inspect

- name: Login to GitHub Container Registry (for worker-testing-only image)
if: github.event_name != 'pull_request'
Copy link
Member

Choose a reason for hiding this comment

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

it looks like the push is not conditional on this, so why is the login?

(maybe we can make the entire job conditional instead of the individial steps?)

- name: Inspect builder
run: docker buildx inspect

- name: Login to GitHub Container Registry (for worker-testing-only image)
Copy link
Member

Choose a reason for hiding this comment

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

the "(for worker-testing-only image)" is a bit weird here. Why only this step?

username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

# This must match EXACTLY the one in the `build` pipeline.
Copy link
Member

Choose a reason for hiding this comment

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

could use a yaml alias thingy to avoid the duplication

Copy link
Contributor

Choose a reason for hiding this comment

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

anchor and merge are the formal names, I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apparently GHA doesn't support YAML anchors. I was surprised but this is what the net says.

esac
echo "::set-output name=tag::$tag"

# This image is solely intended to be used for automated test tools,
Copy link
Member

Choose a reason for hiding this comment

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

.oO (we should probably use https://github.com/peter-evans/dockerhub-description to upload/sync the image descriptions on ghcr/dockerhub)

@reivilibre
Copy link
Contributor Author

Turns out this wasn't flexible enough, so mx-tester builds its own image now (I think).

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

Successfully merging this pull request may close these issues.

3 participants