Build bentley image #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Build bentley image" | |
on: | |
workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions | |
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-bentley:${{ github.sha }}, ghcr.io/mlibrary/aspace-containerization/aspace-bentley:latest' | |
file: ./app/instances/bentley/Dockerfile.bentley | |
build-args: | | |
ASPACE_APP_IMAGE=ghcr.io/mlibrary/aspace-containerization/aspace-app:v3.4.1 |