Skip to content

Commit

Permalink
Add GitHub workflow for building ppdb-replication Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Sep 30, 2024
1 parent 0a81492 commit 17c8f4f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker
on:
pull_request: {}
push:
tags:
- "*"

jobs:
docker:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
with:
# Needed to fetch tags, used by Python install process to
# figure out version number
fetch-depth: 0

- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: build
with:
image: "lsst/ppdb-replication"
dockerfile: "docker/Dockerfile.replication"
github_token: ${{ secrets.GITHUB_TOKEN }}
push: true

- run: echo Pushed ghcr.io/lsst/ppdb-replication:${{ steps.build.outputs.tag }}

0 comments on commit 17c8f4f

Please sign in to comment.