Skip to content

Commit d3e5a78

Browse files
adds production workflow
1 parent ea8b647 commit d3e5a78

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/production.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Production
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
production:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
package: [property-base, property-tree]
13+
14+
steps:
15+
- name: 🛎️ Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: 🔐 Login to Docker Registry
19+
uses: docker/login-action@v2
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: 🔧 Build and push Docker Image
26+
uses: docker/build-push-action@v4
27+
with:
28+
context: ./packages/${{ matrix.package }}
29+
file: ./packages/${{ matrix.package }}/Dockerfile
30+
push: true
31+
tags: |
32+
ghcr.io/bostads-ab-mimer/onecore-core/${{ matrix.package }}:release-${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)