Skip to content

Docker Build

Docker Build #9

name: Docker Build
"on":
# Modify workflow to run on tag, when update dockerfile
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lsst-sqre/build-and-push-to-ghcr@tickets/DM-41857
id: build
with:
image: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- run: echo Pushed ghcr.io/${{ github.repository }}:${{ steps.build.outputs.tag }}