-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.11 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
php_version:
description: 'PHP version'
required: true
default: '8.3'
wavelog_version:
description: 'wavelog version'
required: true
default: '1.3.1'
jobs:
build:
if: ${{ github.event_name != 'workflow_dispatch' }}
name: 'build'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build container image
uses: dagger/dagger-for-github@v5
with:
version: "0.10.1"
verb: call
module: '.'
args: 'build --php-version=8.3 --wavelog-version=1.3.1'
build-and-push:
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build and push container image
uses: dagger/dagger-for-github@v5
with:
version: "0.10.1"
verb: call
module: '.'
args: 'build-and-push --registry="ghcr.io/philipreinken/wavelog-docker/wavelog"'