Skip to content

Commit 51e3177

Browse files
authored
Merge pull request #78 from nim65s/docker
setup dockgen
2 parents 01fd93e + 19efc40 commit 51e3177

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

.github/workflows/dockgen.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Publish docker image"
2+
3+
on:
4+
push:
5+
branches:
6+
- devel
7+
tags:
8+
- "v*"
9+
10+
jobs:
11+
dockgen:
12+
runs-on: "ubuntu-latest"
13+
permissions:
14+
contents: read
15+
packages: write
16+
attestations: write
17+
id-token: write
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- uses: astral-sh/setup-uv@v7
22+
- run: uvx dockgen
23+
24+
# https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions
25+
26+
- name: Log in to the Container registry
27+
uses: docker/login-action@v3
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Extract metadata (tags, labels) for Docker
34+
id: meta
35+
uses: docker/metadata-action@v5
36+
with:
37+
images: ghcr.io/${{ github.repository }}
38+
39+
- name: Build and push Docker image
40+
id: push
41+
uses: docker/build-push-action@v6
42+
with:
43+
context: .
44+
push: true
45+
tags: ${{ steps.meta.outputs.tags }}
46+
labels: ${{ steps.meta.outputs.labels }}
47+
48+
- name: Generate artifact attestation
49+
uses: actions/attest-build-provenance@v3
50+
with:
51+
subject-name: ghcr.io/${{ github.repository }}
52+
subject-digest: ${{ steps.push.outputs.digest }}
53+
push-to-registry: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build*/
22
*~
3+
Dockerfile

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- setup dockgen
11+
1012
## [1.3.1] - 2025-11-04
1113

1214
- ROS: jrl_cmakemodules dependency

dockgen.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[jrl-cmakemodules]
2+
url = "github:jrl-umi3218"
3+
4+
[eiquadprog]
5+
url = "."
6+
apt_deps = ["libboost-all-dev", "libeigen3-dev"]
7+
src_deps = ["jrl-cmakemodules"]

0 commit comments

Comments
 (0)