Skip to content

Add Julia and TreeKnit to Docker image #2

Add Julia and TreeKnit to Docker image

Add Julia and TreeKnit to Docker image #2

Workflow file for this run

name: docker
on:
push:
branches:
- master
paths:
- .github/workflows/docker.yml
- build
- Dockerfile
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# Uncomment this if you are building for a non-native --platform
# - uses: docker/setup-qemu-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
image_tag="ghcr.io/${{ github.repository }}:${{ github.run_id }}"
image_latest="ghcr.io/${{ github.repository }}:latest"
./build \
--tag "$image_tag" \
--tag "$image_latest" \
--push
cat >"$GITHUB_STEP_SUMMARY" <<~~
Image successfully published.
Pull the image for local use:
docker pull $image_tag
~~