-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (65 loc) · 1.94 KB
/
Copy pathrelease.yaml
File metadata and controls
73 lines (65 loc) · 1.94 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build and Release Stochastix
on:
push:
branches: [ master ]
tags:
- 'v*.*.*'
paths-ignore:
- '**/*.md'
workflow_dispatch:
repository_dispatch:
types: [new-ui-release]
env:
REGISTRY: ghcr.io
APP_IMAGE_NAME: phpquant/stochastix
INSTALLER_IMAGE_NAME: phpquant/stochastix-installer
jobs:
build_and_push_app:
name: Build & Push App Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push App image
uses: docker/build-push-action@v5
with:
context: .
file: ./build/app.Dockerfile
target: frankenphp_dev
push: true
tags: ${{ env.REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ github.ref_name }},${{ env.REGISTRY }}/${{ env.APP_IMAGE_NAME }}:latest
build-args: |
UI_REPO=phpquant/stochastix-ui
UI_VERSION=latest
build_and_push_installer:
name: Build & Push Installer Image
runs-on: ubuntu-latest
needs: build_and_push_app
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Installer image
uses: docker/build-push-action@v5
with:
context: .
file: ./build/installer/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.INSTALLER_IMAGE_NAME }}:latest