Skip to content

Commit 8e7cb08

Browse files
authored
Create docker-image.yml
1 parent bc7acc2 commit 8e7cb08

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build docker images
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-push-image:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
#build service
18+
- name: Build servuce
19+
run: |
20+
npm install
21+
npm run build
22+
working-directory: ./service
23+
24+
#publish images
25+
- name: Log in to the Container registry
26+
uses: docker/login-action@v2
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Build and push oidp image
33+
uses: docker/build-push-action@v4
34+
with:
35+
context: ./service
36+
platforms: linux/amd64,linux/arm64
37+
push: true
38+
tags: ghcr.io/aczwink/opendistributedfilestorage:latest

0 commit comments

Comments
 (0)