Skip to content

Build app image

Build app image #53

Workflow file for this run

---
name: "Build app 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: ./app
push: true
tags: 'ghcr.io/mlibrary/aspace-containerization/aspace-app:${{ github.sha }}'
file: ./app/Dockerfile
build-args: |
ASPACE_VERSION=${{ github.event.inputs.archives_space_version }}