-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.meta.toml
98 lines (88 loc) · 2.44 KB
/
.meta.toml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
# See the inline comments on how to expand/tweak this configuration file
[meta]
template = "default"
commit-id = "b3ba013b"
[pyproject]
codespell_skip = "*.min.js,*.json"
codespell_ignores = "vew"
dependencies_ignores = "['plone.volto', 'zestreleaser.towncrier', 'zest.releaser', 'pytest', 'pytest-cov', 'pytest-plone']"
dependencies_mappings = [
"Plone = ['Products.CMFPlone', 'Products.CMFCore', 'Products.GenericSetup']",
]
extra_lines = """
[tool.coverage.run]
omit = [
"*/locales/update.py",
"*/setuphandlers/__init__.py"
]
"""
[tox]
test_runner = "pytest"
test_path = "/tests"
use_mxdev = true
constrain_package_deps = false
[github]
ref = "1.0.0"
jobs = [
"qa",
"test",
"coverage",
"dependencies",
"release_ready",
]
extra_lines = """
image:
runs-on: ubuntu-latest
needs:
- qa
- test
- coverage
- release_ready
- dependencies
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Metadata for Docker Image"
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/kitconcept/voltolighttheme
labels: |
org.label-schema.docker.cmd=docker run -d -p 8080:8080 ghcr.io/kitconcept/voltolighttheme:latest
flavor:
latest=false
tags: |
type=ref,event=branch
type=sha
type=raw,value=latest,enable={{ is_default_branch }}
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v2
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v2
- name: "Login to ghcr.io"
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Use mxdev to install dependencies"
run: |
pip install mxdev
mxdev -c mx.ini
- name: "Create image and publish it on ghcr.io"
uses: docker/build-push-action@v4
with:
context: ./
platforms: linux/amd64,linux/arm64
file: Dockerfile
build-args: SEED=${{ github.run_id }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
"""