Skip to content

Commit 10340e9

Browse files
Add GitHub workflow for building ppdb-replication Docker image
This only builds the Docker image for ppdb-replication. Add additional steps to build other Docker images.
1 parent de36fd0 commit 10340e9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Docker
2+
on:
3+
pull_request: {}
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
# Needed to fetch tags, used by Python install process to
20+
# figure out version number
21+
fetch-depth: 0
22+
23+
- uses: lsst-sqre/build-and-push-to-ghcr@v1
24+
id: build
25+
with:
26+
image: "lsst/ppdb-replication"
27+
dockerfile: "docker/Dockerfile.replication"
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
push: true
30+
31+
- run: echo Pushed ghcr.io/lsst/ppdb-replication:${{ steps.build.outputs.tag }}

0 commit comments

Comments
 (0)