2023-07-18 20:36:12 +09:00
|
|
|
name: Build container release images
|
2023-07-24 14:15:03 +09:00
|
|
|
on: push
|
2023-07-18 20:36:12 +09:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
2023-07-24 16:25:28 +09:00
|
|
|
get-current-date:
|
|
|
|
name: Get Current Date
|
2023-07-24 14:15:03 +09:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-07-24 16:25:28 +09:00
|
|
|
- name: Get Current Date
|
2023-07-24 14:15:03 +09:00
|
|
|
id: time
|
2023-07-24 16:25:28 +09:00
|
|
|
run: echo "DATE=$(date +%Y%m%d%H%M)" >> $GITHUB_OUTPUT
|
2023-07-18 20:36:12 +09:00
|
|
|
build-image:
|
|
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
|
|
with:
|
|
|
|
platforms: linux/amd64,linux/arm64
|
2023-07-19 14:25:59 +09:00
|
|
|
use_native_arm64_builder: false
|
2023-07-18 20:36:12 +09:00
|
|
|
push_to_images: |
|
2023-07-19 14:25:59 +09:00
|
|
|
ghcr.io/${{ github.repository_owner }}/mastodon
|
2023-07-18 20:36:12 +09:00
|
|
|
flavor: |
|
2023-07-24 14:15:03 +09:00
|
|
|
latest = true
|
2023-07-18 20:36:12 +09:00
|
|
|
tags: |
|
2023-07-24 16:25:28 +09:00
|
|
|
type=pep440,pattern=${{ needs.get-current-date.outputs.DATE }}
|
2023-07-18 20:36:12 +09:00
|
|
|
secrets: inherit
|