1
0

build image every time

This commit is contained in:
Noa Himesaka 2023-07-24 14:15:03 +09:00
parent a52fafba6e
commit 2a4e1764bd

View File

@ -1,14 +1,18 @@
name: Build container release images
on:
push:
tags:
- '*'
on: push
permissions:
contents: read
packages: write
jobs:
get-current-time:
name: Get Current Time
runs-on: ubuntu-latest
steps:
- name: Get Current TIme
id: time
run: echo "MY_DATE=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
build-image:
uses: ./.github/workflows/build-container-image.yml
with:
@ -17,8 +21,7 @@ jobs:
push_to_images: |
ghcr.io/${{ github.repository_owner }}/mastodon
flavor: |
latest=${{ startsWith(github.ref, 'refs/tags/v4.1.') }}
latest = true
tags: |
type=pep440,pattern={{raw}}
type=pep440,pattern=v{{major}}.{{minor}}
type=pep440,pattern=${{ env.MY_DATE }}
secrets: inherit