Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 1.5 KB

dev-instructions.md

File metadata and controls

70 lines (54 loc) · 1.5 KB

Dev Instructions

Update GitHub Action git tag

git tag -fa v1 -m "Update v1 tag"
git push origin v1 --force

Base Bloaty Docker image

Build image:

docker build -t "bloaty" docker-bloaty

Run image:

docker run --rm bloaty --help
docker run --rm -v $(pwd):/home test-elf-files/example-after.elf -d compileunits -n 30 -s vm

Publish image:

docker login ghcr.io -u <your_username>
docker images
docker tag IMAGE_ID ghcr.io/carlosperate/bloaty:VERSION
docker push ghcr.io/carlosperate/bloaty:VERSION
docker tag IMAGE_ID ghcr.io/carlosperate/bloaty:latest
docker push ghcr.io/carlosperate/bloaty:latest

Git tag for the bloaty image

git tag -a docker_bloaty_v<version> -m "v<version> release of the bloaty Docker image"
git push origin --tags

Action Docker image

Build image, from the project root directory:

docker build -t "bloaty-action" docker-action

Run image:

docker run --rm bloaty-action --help
docker run --rm -v $(pwd):/home bloaty-action test-elf-files/example-after.elf

Publish image:

docker login ghcr.io -u <your_username>
docker images
docker tag IMAGE_ID ghcr.io/carlosperate/bloaty-action:VERSION
docker push ghcr.io/carlosperate/bloaty-action:VERSION
docker tag IMAGE_ID ghcr.io/carlosperate/bloaty-action:latest
docker push ghcr.io/carlosperate/bloaty-action:latest

Git tag for the bloaty-action image

git tag -a docker_action_v<version> -m "v<version> release of the bloaty-action Docker image"
git push origin --tags