Skip to content

Commit

Permalink
fix(workflow): use path for building container
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Nov 26, 2022
1 parent d7be050 commit 3cf8369
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/publish-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
pull_request:
paths:
- 'packages/container/**'
- 'packages/service/**'
- '.github/workflows/publish-container.yml'
branches:
- next
Expand All @@ -31,20 +32,29 @@ jobs:
matrix:
include:
- image: alpine
path: container/alpine
description: A minimal Docker image based on Alpine Linux with a complete package index and only 5 MB in size!
version:
short: 3
full: 3.16
- image: nginx
path: container/nginx
description: High performance, optimized NGINX for server web applications and api proxy with fast cache.
version:
short: 1
full: 1.0.0-1.23-alpine
# - image: tdlib
# path: container/tdlib
# description: Cross-platform library for building Telegram clients.
# version:
# short: 1
# full: 1.8
- image: storage-server
path: service/storage-server
description: Storage nanoservice with disk backed, Fastest NoSQL Database.
version:
short: 22
full: 0.22.0

permissions:
contents: read
Expand Down Expand Up @@ -98,7 +108,7 @@ jobs:
id: build-and-push
uses: docker/build-push-action@v3
with:
context: packages/container/${{matrix.image}}
context: packages/${{matrix.path}}
push: ${{github.event_name != 'pull_request'}}
tags: ${{steps.meta.outputs.tags}}
labels: ${{steps.meta.outputs.labels}}
Expand Down

0 comments on commit 3cf8369

Please sign in to comment.