Skip to content

Commit 4a810e9

Browse files
2 parents f9e5392 + f2d33d7 commit 4a810e9

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/docker.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
dockerfile: [Dockerfile, Dockerfile.debian]
39+
dockerfile: [Dockerfile]
4040
concurrency:
4141
group: ${{ github.workflow }}-${{ matrix.dockerfile }}-${{ github.event.workflow_run.head_branch || github.ref }}
4242
cancel-in-progress: true
@@ -66,10 +66,10 @@ jobs:
6666
uses: docker/metadata-action@v5
6767
with:
6868
images: |
69-
name=${{ env.REGISTRY_URL }}/${{ env.REGISTRY_USER }}/${{ steps.image_name.outputs.IMAGE }}
69+
${{ env.REGISTRY_URL }}/${{ env.REGISTRY_USER }}/${{ steps.image_name.outputs.IMAGE }}
7070
tags: |
71-
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
72-
type=ref,event=branch,enable=${{ !endsWith(github.ref, 'main') }}
71+
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') || endsWith(github.ref, 'master') }}
72+
type=ref,event=branch,enable=${{ !endsWith(github.ref, 'main') && !endsWith(github.ref, 'master') }}
7373
type=semver,pattern={{version}}
7474
flavor: |
7575
latest=false
@@ -89,7 +89,5 @@ jobs:
8989
tags: ${{ steps.meta.outputs.tags }}
9090
labels: ${{ steps.meta.outputs.labels }}
9191
platforms: linux/amd64,linux/arm64/v8
92-
cache-from: |
93-
type=registry,ref=ghcr.io/${{ github.repository_owner }}/build-cache:${{ steps.image_name.outputs.IMAGE }}-buildcache
94-
cache-to: |
95-
type=registry,ref=ghcr.io/${{ github.repository_owner }}/build-cache:${{ steps.image_name.outputs.IMAGE }}-buildcache,mode=max
92+
cache-from: type=registry,ref=${{ steps.meta.outputs.tags }}
93+
cache-to: type=registry,ref=${{ steps.meta.outputs.tags }},mode=max

taskfile.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@ shopt: ['globstar']
66
dotenv: ['.env']
77

88
env:
9-
TLD:
10-
sh: git rev-parse --show-toplevel
9+
TLD: "{{.ROOT_DIR}}"
1110
VENV_DIR: ".venv"
1211

1312
vars:
1413

1514
includes:
1615
docker:
1716
taskfile: ./taskfiles/docker.yml
18-
aliases: ["docker"]
1917
poetry:
2018
taskfile: ./taskfiles/poetry.yml
21-
aliases: ["poetry"]
2219

2320
tasks:
2421
default:

0 commit comments

Comments
 (0)