mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 05:29:26 -05:00
Fix GHA job for pushing the complement-synapse image (#14573)
Co-authored-by: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
This commit is contained in:
parent
c7e29ca277
commit
5b0dcda7f0
20
.github/workflows/push_complement_image.yml
vendored
20
.github/workflows/push_complement_image.yml
vendored
@ -34,17 +34,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout specific branch (debug build)
|
- name: Checkout specific branch (debug build)
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
if: 'github.event.type == "workflow_dispatch"'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.branch }}
|
ref: ${{ inputs.branch }}
|
||||||
- name: Checkout clean copy of develop (scheduled build)
|
- name: Checkout clean copy of develop (scheduled build)
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
if: 'github.event.type == "schedule"'
|
if: github.event_name == 'schedule'
|
||||||
with:
|
with:
|
||||||
ref: develop
|
ref: develop
|
||||||
- name: Checkout clean copy of master (on-push)
|
- name: Checkout clean copy of master (on-push)
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
if: 'github.event.type == "push"'
|
if: github.event_name == 'push'
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
@ -55,14 +55,20 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Work out labels for complement image
|
- name: Work out labels for complement image
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v1
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ghcr.io/${{ github.repository }}/complement-synapse
|
images: ghcr.io/${{ github.repository }}/complement-synapse
|
||||||
- name: Build complement image
|
tags: |
|
||||||
|
type=schedule,pattern=nightly,enable=${{ github.event_name == 'schedule'}}
|
||||||
|
type=raw,value=develop,enable=${{ github.event_name == 'schedule' || inputs.branch == 'develop' }}
|
||||||
|
type=raw,value=latest,enable=${{ github.event_name == 'push' || inputs.branch == 'master' }}
|
||||||
|
type=sha,format=long
|
||||||
|
- name: Run scripts-dev/complement.sh to generate complement-synapse:latest image.
|
||||||
run: scripts-dev/complement.sh --build-only
|
run: scripts-dev/complement.sh --build-only
|
||||||
- name: Tag and push generated image
|
- name: Tag and push generated image
|
||||||
run: |
|
run: |
|
||||||
for TAG in ${{ steps.meta.outputs.tags }}; do
|
for TAG in ${{ join(fromJson(steps.meta.outputs.json).tags, ' ') }}; do
|
||||||
docker tag complement-synapse:latest $TAG
|
echo "tag and push $TAG"
|
||||||
|
docker tag complement-synapse $TAG
|
||||||
docker push $TAG
|
docker push $TAG
|
||||||
done
|
done
|
||||||
|
1
changelog.d/14573.misc
Normal file
1
changelog.d/14573.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Push complement-synapse docker images to ghcr.io repository.
|
Loading…
Reference in New Issue
Block a user