Fix tag handling for standard and alpine image
This commit is contained in:
parent
3df101a91d
commit
841d3ac115
1 changed files with 17 additions and 2 deletions
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
@ -39,6 +39,21 @@ jobs:
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha
|
type=sha
|
||||||
|
|
||||||
|
- name: Docker meta for Alpine image
|
||||||
|
id: alpine-meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
actualbudget/actual-server
|
||||||
|
ghcr.io/actualbudget/actual-server
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
type=raw,value=latest,suffix=-alpine
|
||||||
|
type=semver,pattern={{version}},suffix=-alpine
|
||||||
|
type=semver,pattern={{major}}.{{minor}},suffix=-alpine
|
||||||
|
type=sha,suffix=-alpine
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
|
@ -58,7 +73,7 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: ${{ secrets.DOCKERHUB_PROJECT }}:latest
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
- name: Build and push Alpine image
|
- name: Build and push Alpine image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
@ -67,4 +82,4 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
file: Dockerfile.alpine
|
file: Dockerfile.alpine
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.alpine-meta.outputs.tags }}
|
||||||
|
|
Loading…
Reference in a new issue