Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Update build-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMattia committed Aug 11, 2024
1 parent 7611b7d commit decc52f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,15 @@ jobs:
- name: Fetch installer
run: deno run --allow-net --allow-write fetchInstaller.ts

- name: Check files
run: ls -la

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: mcmattia
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: mcmattia
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: ghcr.io/mcmattia/stm32cubeide-docker

Expand Down
37 changes: 36 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# Verifiable STM32CubeIde docker image
# Verifiable STM32CubeIde docker image

Docker image build by github actions with verifiable steps.

## Usage

Verify the image with github cli (optional):

```
gh attestation verify oci://docker.io/mcmattia/stm32cubeide-docker:1.0 -R mcmattia/stm32cubeide-docker
```

Pull the image from [docker hub](https://hub.docker.com/r/mcmattia/stm32cubeide-docker):

```
docker pull mcmattia/stm32cubeide-docker:1.0
```

Run the image:

```
docker run -it mcmattia/stm32cubeide:1.0
```

Execute STM32CubeIde build command:

```
stm32cubeide --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data buildWorkspace -import STM32Project -build STM32Project/Debug
```

## Image versions

| Image version | STM32CubeIde version |
| ------------- | -------------------- |
| 1.0 | 1.16.0 |

0 comments on commit decc52f

Please sign in to comment.