ukrepo theme #44
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
# DSpace Docker image build for hub.docker.com | |
name: Docker images | |
# Run this Build for all pushes to 'main' or maintenance branches, or tagged releases. | |
# Also run for PRs to ensure PR doesn't break Docker build process | |
# NOTE: uses "reusable-docker-build.yml" in DSpace/DSpace to actually build each of the Docker images | |
# https://github.com/DSpace/DSpace/blob/main/.github/workflows/reusable-docker-build.yml | |
# | |
on: | |
push: | |
branches: | |
- clarin-v7 | |
- customer/* | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
dspace-angular: | |
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace-angular' | |
if: github.repository == 'ufal/dspace-angular' | |
uses: ufal/clarin-dspace/.github/workflows/reusable-docker-build.yml@clarin-v7 | |
with: | |
build_id: dspace-angular | |
image_name: ufal/dspace-angular | |
dockerfile_path: ./Dockerfile | |
run_python_version_script: true | |
python_version_script_dest: src/static-files/VERSION_D.html | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_ACCESS_TOKEN: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
############################################################# | |
# Build/Push the 'ufal/dspace-angular' image ('-dist' tag) | |
############################################################# | |
dspace-angular-dist: | |
# Ensure this job never runs on forked repos. It's only executed for 'ufal/dspace-angular' | |
if: github.repository == 'ufal/dspace-angular' && false # not used for now | |
uses: ufal/clarin-dspace/.github/workflows/reusable-docker-build.yml@clarin-v7 | |
with: | |
build_id: dspace-angular-dist | |
image_name: dspace/dspace-angular | |
dockerfile_path: ./Dockerfile.dist | |
# As this is a "dist" image, its tags are all suffixed with "-dist". Otherwise, it uses the same | |
# tagging logic as the primary 'dspace/dspace-angular' image above. | |
tags_flavor: suffix=-dist | |
run_python_version_script: true | |
python_version_script_dest: src/static-files/VERSION_D.html | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_ACCESS_TOKEN: ${{ secrets.DOCKER_ACCESS_TOKEN }} |