-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.59 KB
/
build-main.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build latest catalog-solr-unstable and catalog-indexer-unstable on push to main
on:
push:
branches: [ main ]
jobs:
build-catalog-solr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Log into Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push catalog-solr
env:
IMAGE_NAME: catalog-solr-unstable
uses: docker/build-push-action@v2
with:
context: biblio/.
push: true
tags: |
ghcr.io/mlibrary/${{ env.IMAGE_NAME }}:latest
ghcr.io/mlibrary/${{ env.IMAGE_NAME }}:${{ github.sha }}
build-catalog-indexer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Log into Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push catalog-indexer
env:
IMAGE_NAME: catalog-indexer-unstable
uses: docker/build-push-action@v2
with:
context: umich_catalog_indexing/.
file: umich_catalog_indexing/Dockerfile
push: true
secrets: |
"gh_package_read_token=${{ secrets.GH_PACKAGE_READ_TOKEN }}"
tags: |
ghcr.io/mlibrary/${{ env.IMAGE_NAME }}:latest
ghcr.io/mlibrary/${{ env.IMAGE_NAME }}:${{ github.sha }}