Skip to content

Commit 2f16882

Browse files
authored
Merge pull request #575 from nim65s/devel
dockgen: init
2 parents e3382c1 + 239e919 commit 2f16882

File tree

6 files changed

+72
-2
lines changed

6 files changed

+72
-2
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@v4
20+
21+
- uses: astral-sh/setup-uv@v6
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@v2
50+
with:
51+
subject-name: ghcr.io/${{ github.repository }}
52+
subject-digest: ${{ steps.push.outputs.digest }}
53+
push-to-registry: true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
rev: v0.24.2
2222
hooks:
2323
- id: toml-sort-fix
24-
exclude: pixi.toml
24+
exclude: pixi.toml|dockgen.toml
2525
- repo: https://github.com/pre-commit/mirrors-clang-format
2626
rev: v20.1.7
2727
hooks:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- Docker images `ghcr.io/stack-of-tasks/eigenpy` ([#575](https://github.com/stack-of-tasks/eigenpy/pull/575))
12+
913
### Changed
1014

1115
- Change the default branch to `devel` ([#547](https://github.com/stack-of-tasks/eigenpy/pull/547))

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ and then install **EigenPy** for Python 3.x with:
7979
brew install eigenpy
8080
```
8181

82+
### Docker
83+
84+
```
85+
docker run --rm -it ghcr.io/stack-of-tasks/eigenpy:devel
86+
```
87+
8288
## Build
8389

8490
Build instruction can be found [here](./development/build.md)

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+
[eigenpy]
5+
url = "."
6+
apt_deps = ["libboost-all-dev", "libeigen3-dev", "python3-numpy", "python3-scipy"]
7+
src_deps = ["jrl-cmakemodules"]

0 commit comments

Comments
 (0)