-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.55 KB
/
docker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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: base
with:
image: "lsst/ppdb-base"
dockerfile: "docker/Dockerfile.base"
github_token: ${{ secrets.GITHUB_TOKEN }}
push: true
- run: echo Pushed ghcr.io/lsst/ppdb-base:${{ steps.base.outputs.tag }}
- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: cli
with:
image: "lsst/ppdb-cli"
dockerfile: "docker/Dockerfile.cli"
github_token: ${{ secrets.GITHUB_TOKEN }}
push: true
build-args: |
BASE_IMAGE=ghcr.io/lsst/ppdb-base:${{ steps.base.outputs.tag }}
- run: echo Pushed ghcr.io/lsst/ppdb-cli:${{ steps.cli.outputs.tag }}
- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: replication
with:
image: "lsst/ppdb-replication"
dockerfile: "docker/Dockerfile.replication"
github_token: ${{ secrets.GITHUB_TOKEN }}
push: true
build-args: |
BASE_IMAGE=ghcr.io/lsst/ppdb-base:${{ steps.base.outputs.tag }}
- run: echo Pushed ghcr.io/lsst/ppdb-replication:${{ steps.replication.outputs.tag }}