Skip to content

Commit 64a0e23

Browse files
committed
ci: publish image
1 parent 4637a0d commit 64a0e23

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-stack.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,14 @@ jobs:
6060
run: |
6161
pip install --upgrade build
6262
python -m build
63-
podman build . -f build/Containerfile -t imagename
6463
64+
- name: Login to ghcr.io
65+
run: podman login --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
66+
67+
- name: Publish Image
68+
id: publish-image
69+
run: |
70+
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/podman-ai-lab-stack
71+
IMAGE_SHA=${IMAGE_NAME}:${GITHUB_SHA}
72+
podman build . -f build/Containerfile -t $IMAGE_SHA
73+
podman push $IMAGE_SHA

0 commit comments

Comments
 (0)