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
This only builds the Docker image for ppdb-replication. Add additional
steps to build other Docker images.
  • Loading branch information
JeremyMcCormick committed Oct 2, 2024
1 parent 767d02d commit c0ce551
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker
on:
pull_request: {}
push:
branches:
- main
tags:
- "*"

jobs:
docker:
runs-on: ubuntu-latest
timeout-minutes: 5
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 c0ce551

Please sign in to comment.