-
-
Notifications
You must be signed in to change notification settings - Fork 377
34 lines (31 loc) · 926 Bytes
/
Copy pathimage-frontend.yml
File metadata and controls
34 lines (31 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: image-frontend
on:
release:
types: [created]
push:
branches: [dev]
paths:
- 'apps/frontend/**'
- 'deploy/docker/frontend/Dockerfile'
- '.github/workflows/image-frontend.yml'
- '.github/workflows/_build-image.yml'
jobs:
dev:
if: github.event_name != 'release'
uses: ./.github/workflows/_build-image.yml
with:
image: reallibrephotos/librephotos-frontend
dockerfile: deploy/docker/frontend/Dockerfile
build-args: |
GIT_HASH=${{ github.sha }}
secrets: inherit
release:
if: github.event_name == 'release' && github.event.action == 'created'
uses: ./.github/workflows/_build-image.yml
with:
image: reallibrephotos/librephotos-frontend
dockerfile: deploy/docker/frontend/Dockerfile
release-tag: ${{ github.event.release.tag_name }}
build-args: |
GIT_HASH=${{ github.sha }}
secrets: inherit