Skip to content

Commit

Permalink
Update to improve GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kadoshita committed Oct 12, 2024
1 parent 22323b9 commit 90ff67e
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 609 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build container by manual
on:
workflow_dispatch:
inputs:
version:
description: 'Version to build'
required: true
default: 'v4.3.0'

permissions:
contents: read
packages: write

jobs:
build-image:
uses: ./.github/workflows/build-container-image.yml
with:
file_to_build: Dockerfile
platforms: linux/amd64,linux/arm64
use_native_arm64_builder: true
push_to_images: |
ghcr.io/kadoshita/mastodon
# Do not use cache when building releases, so apt update is always ran and the release always contain the latest packages
cache: false
# Only tag with latest when ran against the latest stable branch
# This needs to be updated after each minor version release
flavor: |
latest=true
tags: |
type=pep440,pattern={{raw}},value=${{ inputs.version }}
secrets: inherit

build-image-streaming:
uses: ./.github/workflows/build-container-image.yml
with:
file_to_build: streaming/Dockerfile
platforms: linux/amd64,linux/arm64
use_native_arm64_builder: true
push_to_images: |
ghcr.io/kadoshita/mastodon-streaming
# Do not use cache when building releases, so apt update is always ran and the release always contain the latest packages
cache: false
# Only tag with latest when ran against the latest stable branch
# This needs to be updated after each minor version release
flavor: |
latest=true
tags: |
type=pep440,pattern={{raw}},value=${{ inputs.version }}
secrets: inherit
66 changes: 0 additions & 66 deletions .github/workflows/build-nightly.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/build-push-pr.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/build-security.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/bundler-audit.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/check-i18n.yml

This file was deleted.

Loading

0 comments on commit 90ff67e

Please sign in to comment.