build image every time
This commit is contained in:
parent
a52fafba6e
commit
2a4e1764bd
17
.github/workflows/build-releases.yml
vendored
17
.github/workflows/build-releases.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user