-
Notifications
You must be signed in to change notification settings - Fork 137
38 lines (35 loc) · 975 Bytes
/
publish-docker.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
name: Publish Docker
on:
workflow_call:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- '.github/workflows/publish-docker.yml'
- '.github/docker/**'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/publish-docker.yml'
- '.github/docker/**'
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: 'ghcr.io/${{github.repository}}/clang17'
dockerfile: '.github/docker/clang17/dockerfile'
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ matrix.name }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: ${{ matrix.dockerfile }}
tags: "latest"
no_push: ${{ github.event_name == 'pull_request' }}