store version in CI
Some checks failed
/ prepare-suffix (push) Successful in 1s
/ publish-docker (push) Has been skipped
/ build-assets (push) Successful in 3m18s
/ build-containers (map[name:arm64v8 platform:arm64]) (push) Failing after 24s
/ build-containers (map[name:amd64 platform:amd64]) (push) Failing after 24s
Some checks failed
/ prepare-suffix (push) Successful in 1s
/ publish-docker (push) Has been skipped
/ build-assets (push) Successful in 3m18s
/ build-containers (map[name:arm64v8 platform:arm64]) (push) Failing after 24s
/ build-containers (map[name:amd64 platform:amd64]) (push) Failing after 24s
This commit is contained in:
parent
f71e367759
commit
9c1df68008
|
@ -1,7 +1,7 @@
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
env:
|
||||
RAILS_SERVE_STATIC_FILES: 'true'
|
||||
|
@ -11,6 +11,8 @@ env:
|
|||
GIT_REPOSITORY: 'asonix/mastodon'
|
||||
GIT_HOST: 'https://git.asonix.dog'
|
||||
REGISTRY_IMAGE: 'asonix/mastodon'
|
||||
MASTODON_VERSION: 'v4.2.6'
|
||||
REVISION: '1'
|
||||
|
||||
|
||||
jobs:
|
||||
|
@ -43,7 +45,7 @@ jobs:
|
|||
OTP_SECRET: precompile_placeholder
|
||||
SECRET_KEY_BASE: precompile_placeholder
|
||||
-
|
||||
name: Zip Assets
|
||||
name: GZip Assets
|
||||
run: tar -zcf public.tar.gz public
|
||||
-
|
||||
name: Upload Assets
|
||||
|
@ -86,10 +88,10 @@ jobs:
|
|||
uses: https://github.com/actions/download-artifact@v3
|
||||
with:
|
||||
name: assets
|
||||
path: public
|
||||
path: .
|
||||
-
|
||||
name: ls public
|
||||
run: ls public/
|
||||
name: GUnzip Assets
|
||||
run: tar -zxf public.tar.gz
|
||||
-
|
||||
name: Prepare Platform
|
||||
run: |
|
||||
|
@ -104,12 +106,11 @@ jobs:
|
|||
images: ${{ env.REGISTRY_IMAGE }}
|
||||
flavor: |
|
||||
latest=auto
|
||||
suffix=-${{ needs.prepare-suffix.outputs.suffix }}-${{ matrix.info.name }}
|
||||
suffix=-${{ needs.prepare-suffix.outputs.suffix }}-${{ env.REVISION }}-${{ matrix.info.name }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{ is_default_branch }}
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern={{version}},value=${{ env.MASTODON_VERSION }}
|
||||
type=semver,pattern={{major}}.{{minor}},value=${{ env.MASTODON_VERSION }}
|
||||
type=semver,pattern={{major}},value=${{ env.MASTODON_VERSION }}
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: https://github.com/docker/setup-qemu-action@v3
|
||||
|
@ -181,12 +182,11 @@ jobs:
|
|||
images: ${{ env.REGISTRY_IMAGE }}
|
||||
flavor: |
|
||||
latest=auto
|
||||
suffix=-${{ needs.prepare-suffix.outputs.suffix }}
|
||||
suffix=-${{ needs.prepare-suffix.outputs.suffix }}-${{ env.REVISION }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{ is_default_branch }}
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern={{version}},value=${{ env.MASTODON_VERSION }}
|
||||
type=semver,pattern={{major}}.{{minor}},value=${{ env.MASTODON_VERSION }}
|
||||
type=semver,pattern={{major}},value=${{ env.MASTODON_VERSION }}
|
||||
-
|
||||
name: Create manifest list and push
|
||||
working-directory: /tmp/digests
|
||||
|
|
Loading…
Reference in a new issue