Skip to content

Commit 6852a1d

Browse files
author
Jules Lefebvre
committed
feat(ci): build and publish postgresql image
Add a new job to build and publish special image for postgresql.
1 parent 3a01f7c commit 6852a1d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
username: ${{ github.repository_owner }}
4444
password: ${{ secrets.GITHUB_TOKEN }}
4545

46-
- name: Build and push
46+
- name: Build and push sqlite
4747
uses: docker/build-push-action@v6
4848
with:
4949
context: .
@@ -53,3 +53,15 @@ jobs:
5353
labels: ${{ steps.meta.outputs.labels }}
5454
cache-from: type=gha
5555
cache-to: type=gha,mode=max
56+
57+
- name: Build and push postgresql
58+
uses: docker/build-push-action@v6
59+
with:
60+
context: .
61+
platforms: linux/amd64,linux/arm64
62+
push: true
63+
tags: postgresql-${{ steps.meta.outputs.tags }}
64+
labels: ${{ steps.meta.outputs.labels }}
65+
build-args: "DB_DATASOURCE=postgresql"
66+
cache-from: type=gha
67+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)