Skip to content

Commit 72f9063

Browse files
authored
Add sql image publishing (#378)
1 parent 0404efb commit 72f9063

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/publish_image_on_release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
env:
1717
REGISTRY: ghcr.io/persistentss13
1818
IMAGE_NAME: nebula
19+
IMAGE_NAME_SQL: nebula-sql
1920

2021
jobs:
2122
build-and-push-image:
@@ -47,4 +48,18 @@ jobs:
4748
context: .
4849
push: true
4950
tags: ${{ steps.meta.outputs.tags }}
50-
labels: ${{ steps.meta.outputs.labels }}
51+
labels: ${{ steps.meta.outputs.labels }}
52+
53+
- name: Extract metadata (tags, labels) for SQL
54+
id: meta-2
55+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
56+
with:
57+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_SQL }}
58+
59+
- name: Build and push Docker image
60+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
61+
with:
62+
context: ./sql
63+
push: true
64+
tags: ${{ steps.meta-2.outputs.tags }}
65+
labels: ${{ steps.meta-2.outputs.labels }}

0 commit comments

Comments
 (0)