A local-first personal finance app
Build docker image on push to master or tag
Trevor Farlowd482b9baf6bb
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex cfd411d6fe..4d5e029bd5 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -1,10 +1,32 @@name: Build Docker Image-# Docker Images are only built when a new tag is created+# Docker Images are built for every push to master or when a new tag is createdon:push:+ branches:+ - mastertags:- 'v*.*.*'+ paths-ignore:+ - README.md+ - LICENSE.txt++env:+ IMAGES: |+ jlongster/actual-server+ ghcr.io/actualbudget/actual-server++ # Creates the following tags:+ # - actual-server:latest (see docker/metadata-action flavor inputs, below)+ # - actual-server:edge (for master)+ # - actual-server:1.3+ # - actual-server:1.3.7+ # - actual-server:sha-90dd603+ TAGS: |+ type=edge+ type=semver,pattern={{version}}+ type=semver,pattern={{major}}.{{minor}}+ type=shajobs:build:@@ -24,35 +46,22 @@ jobs:uses: docker/metadata-action@v4with:# Push to both Docker Hub and Github Container Registry- images: |- jlongster/actual-server- ghcr.io/actualbudget/actual-server- # Creates the following tags:- # - actual-server:latest- # - actual-server:1.3- # - actual-server:1.3.7- # - actual-server:sha-90dd603- tags: |- type=ref,event=branch- type=ref,event=pr- type=semver,pattern={{version}}- type=semver,pattern={{major}}.{{minor}}- type=sha+ images: ${{ env.IMAGES }}+ # Automatically update :latest for our semver tags+ flavor: |+ latest=auto+ tags: ${{ env.TAGS }}- name: Docker meta for Alpine imageid: alpine-metauses: docker/metadata-action@v4with:- images: |- jlongster/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+ images: ${{ env.IMAGES }}+ # Automatically update :latest for our semver tags and suffix all tags+ flavor: |+ latest=auto+ suffix=-alpine,onlatest=true+ tags: $${{ env.TAGS }}- name: Login to Docker Hubuses: docker/login-action@v1