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

Push complement image to a docker registry #14509

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/complement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This task does not run complement tests, see tests.yaml instead.
michaelkaye marked this conversation as resolved.
Show resolved Hide resolved
# This task does not build docker images for synapse for use on docker hub, see docker.yaml instead

name: Store complement synapse image in ghcr.io
on:
push:
branches: ["master", "develop"]
Copy link
Contributor

Choose a reason for hiding this comment

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

this is basically entirely up to you, but do you want to push images for tagged releases?
I could see it maybe being useful for comparing different releases if necessary.

Copy link
Collaborator

Choose a reason for hiding this comment

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

At least for bridges, we've only got the CI bandwidth for doing so many tests, so we're just doing master (and soon develop) for the moment. The idea is to test against latest stable, and also ensuring any new changes landing in Synapse don't break stuff (or vice versa).

Release testing would be nice if we had named supported versions of synapse though.

Copy link
Contributor Author

@michaelkaye michaelkaye Nov 24, 2022

Choose a reason for hiding this comment

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

For my test cases, we probably only want to test current and next as well; if people want to investigate certain synapse versions then that can happen as a local build for now.

(Adding more options can come as required.)

jobs:
build:
name: Build and push complement image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout clean copy
uses: actions/checkout@v3
- name: Login to registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Work out labels for complement image
id: meta
uses: docker/metadata-action@v1
with:
images: ghcr.io/${{ github.repository }}/complement-synapse
- name: Build complement image
run: scripts-dev/complement.sh --build-only
- name: Tag and push generated image
run: |
for TAG in ${{ steps.meta.outputs.tags }}; do
docker tag complement-synapse:latest $TAG
docker push $TAG
done
1 change: 1 addition & 0 deletions changelog.d/14509.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Push complement-synapse docker images to ghcr.io repository.