Skip to content

Build docker image

Build docker image #1

name: build docker image
"on":
workflow_dispatch:
# Follows https://github.com/lsst-sqre/build-and-push-to-ghcr
jobs:
build:
runs-on: ubuntu-latest
if: >
startsWith(github.ref, 'refs/tags/')
|| startsWith(github.head_ref, 'tickets/')
steps:
- uses: actions/checkout@v3
- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: build
with:
image: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile
- run: echo Pushed ghcr.io/${{ github.repository }}:${{ steps.build.outputs.tag }}