From b48e754d4c334c2cdae5986df6deccfb7a8c9f4c Mon Sep 17 00:00:00 2001 From: Jeremy McCormick Date: Fri, 20 Sep 2024 14:38:48 -0500 Subject: [PATCH] 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. --- .github/workflows/docker.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/docker.yaml diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..3355ca5 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,33 @@ +name: Docker +on: + pull_request: {} + push: + branches: + - main + 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 }}