Skip to content

Commit

Permalink
Add streaming to docker image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm committed May 6, 2023
1 parent 47ba0fe commit fd98e7c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
paths:
- .github/workflows/build-image.yml
- Dockerfile
- ./streaming/Dockerfile
permissions:
contents: read
packages: write
Expand All @@ -18,6 +19,19 @@ jobs:
build-image:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- context: ./
image: |
tootsuite/mastodon
ghcr.io/mastodon/mastodon
- context: ./streaming
image: |
tootsuite/mastodon-streaming
ghcr.io/mastodon/mastodon-streaming
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -46,9 +60,7 @@ jobs:
- uses: docker/metadata-action@v4
id: meta
with:
images: |
tootsuite/mastodon
ghcr.io/mastodon/mastodon
images: ${{ matrix.image }}
flavor: |
latest=auto
tags: |
Expand All @@ -65,7 +77,7 @@ jobs:
- uses: docker/build-push-action@v4
with:
context: .
context: ${{ matrix.context }}
build-args: MASTODON_VERSION_SUFFIX=${{ steps.version_vars.outputs.mastodon_version_suffix }}
platforms: linux/amd64,linux/arm64
provenance: false
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
build-nightly-image:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- context: ./
image: ghcr.io/mastodon/mastodon
- context: ./streaming/
image: ghcr.io/mastodon/mastodon-streaming

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -31,8 +40,7 @@ jobs:
- uses: docker/metadata-action@v4
id: meta
with:
images: |
ghcr.io/mastodon/mastodon
images: ${{ matrix.image }}
flavor: |
latest=auto
tags: |
Expand All @@ -48,7 +56,7 @@ jobs:
- uses: docker/build-push-action@v4
with:
context: .
context: ${{ matrix.context }}
build-args: MASTODON_VERSION_SUFFIX=${{ steps.version_vars.outputs.mastodon_version_suffix }}
platforms: linux/amd64,linux/arm64
provenance: false
Expand Down

0 comments on commit fd98e7c

Please sign in to comment.