-
Notifications
You must be signed in to change notification settings - Fork 1
91 lines (81 loc) · 2.26 KB
/
meta.yml
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
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
# See the inline comments on how to expand/tweak this configuration file
name: Meta
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:
jobs:
# qa:
# uses: plone/meta/.github/workflows/qa.yml@portalbrasil
# test:
# uses: plone/meta/.github/workflows/test.yml@portalbrasil
# coverage:
# uses: plone/meta/.github/workflows/coverage.yml@portalbrasil
# release-ready:
# uses: plone/meta/.github/workflows/release_ready.yml@portalbrasil
image:
runs-on: ubuntu-latest
# needs:
# - qa
# - test
# - coverage
# - release-ready
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Metadados da Imagem Docker"
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ vars.IMAGE_NAME }}
labels: |
org.label-schema.docker.cmd=docker run -d -p 8080:8080 ${{ vars.IMAGE_NAME }}: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 no ghcr.io"
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Usa o mxdev para baixar dependências"
run: |
pip install mxdev
mxdev -c mx.ini
cat .dockerignore
- name: "Gera imagem e publica no ghcr.io"
uses: docker/build-push-action@v3
with:
platforms: linux/amd64
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
##
# Specify additional jobs in .meta.toml:
# [github]
# additional_jobs = """
# another:
# uses: org/repo/.github/workflows/file.yml@main
# """
##