Repository navigation
54 lines (51 loc) · 1.69 KB
/
Copy pathdocker.yml
File metadata and controls
54 lines (51 loc) · 1.69 KB
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
name: Docker image
on:
push:
branches: [main]
paths:
- Dockerfile
- Dockerfile.dockerignore
- lib/**
- exe/**
- breadkit-render.gemspec
- .github/workflows/docker.yml
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: breadkit/breadkit
ref: main
path: breadkit
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: breadkit-render
persist-credentials: false
- name: Record core revision
id: core
run: echo "sha=$(git -C breadkit rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .
file: breadkit-render/Dockerfile
push: true
tags: |
ghcr.io/breadkit/breadkit-render:main
ghcr.io/breadkit/breadkit-render:sha-${{ github.sha }}
labels: |
org.opencontainers.image.source=https://github.com/breadkit/breadkit-render
org.opencontainers.image.revision=${{ github.sha }}
io.breadkit.core-revision=${{ steps.core.outputs.sha }}