-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1.25 KB
/
build-solr-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
37
38
39
40
41
42
43
---
name: "Build solr image"
on:
workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions
inputs:
archives_space_version:
description: "Archives Space Version"
required: true
default: "latest"
type: choice
options:
- "latest"
- "v3.4.1"
- "v3.3.1"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to GitHub Container Registry
uses: docker/build-push-action@v2
with:
context: ./solr
push: true
tags: 'ghcr.io/mlibrary/aspace-containerization/aspace-solr:${{ github.sha }}, ghcr.io/mlibrary/aspace-containerization/aspace-solr:${{ github.event.inputs.archives_space_version }}'
file: ./solr/Dockerfile
build-args: |
ASPACE_VERSION=${{ github.event.inputs.archives_space_version }}