diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index f43fe9e..eaad698 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -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 diff --git a/readme.md b/readme.md index 12070b7..d1ef7f3 100644 --- a/readme.md +++ b/readme.md @@ -1 +1,36 @@ -# Verifiable STM32CubeIde docker image \ No newline at end of file +# 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 |