-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (44 loc) · 1.18 KB
/
mu-plugins.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
name: Build MU Plugins
on:
push:
branches:
- master
paths:
- "mu-plugins/**"
- ".github/workflows/mu-plugins.yml"
- ".github/actions/build-docker-image/**"
pull_request:
paths:
- "mu-plugins/**"
- ".github/workflows/mu-plugins.yml"
- ".github/actions/build-docker-image/**"
workflow_dispatch:
repository_dispatch:
types:
- build-mu-plugins
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
pull-requests: write
security-events: write
id-token: write
attestations: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Build and push image
uses: ./.github/actions/build-docker-image
with:
context: mu-plugins
push: ${{ github.base_ref == null }}
primaryTag: ghcr.io/automattic/vip-container-images/mu-plugins:0.1
tags: ghcr.io/automattic/vip-container-images/mu-plugins:latest