-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.04 KB
/
container_image.yml
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
name: "Docker container image"
on:
push:
branches:
- "main"
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
test:
uses: "./.github/workflows/test.yml"
# When a push to the default branch occurs, build and release "latest" images
# When a tag `vX.Y.Z` push occurs, build and release images with that tag
build-and-release-image:
name: "Build and release the data server container image"
needs:
- "test"
uses: "nsidc/.github/.github/workflows/build-and-publish-container-image.yml@main"
secrets: "inherit"
with:
docker-file-name: "Dockerfile"
docker-image-name: "nsidc/snow-today-webapp-server"
# TODO: Decouple the two images
build-and-release-ingest-image:
name: "Build and release the ingest container image"
needs:
- "build-and-release-image"
uses: "nsidc/.github/.github/workflows/build-and-publish-container-image.yml@main"
secrets: "inherit"
with:
docker-file-name: "Dockerfile.ingest"
docker-image-name: "nsidc/snow-today-webapp-server-ingest"